tankauth

Codeigniter Tank_auth session not set

狂风中的少年 提交于 2021-01-29 07:03:37
问题 I have tried all the ways to set the session in the Codeigniter (3.0.6) and Tank Auth (a plug in for Login and Registration). Nothing is working for me. Here is my ci_session table data. Below is my Config file info for the session. $config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = 'ci_session'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy']

Redirect to original page after logging in (Codeigniter)

给你一囗甜甜゛ 提交于 2020-01-02 18:38:10
问题 The entire website requires a user to login before viewing the page. If the user is not logged in, he gets redirected to the login/registration page. Problem: When a user that is not logged in types in a url like http://www.domain.com/listings/1234 , he will be shown that page, but with a darkened page that prevents the user from interacting with the page (jQuery stuff, not a problem here), and a popup modal box with a link to the (Tank Auth) login page http://www.domain.com/login . After

Codeigniter Tank Auth add folder upon registration

独自空忆成欢 提交于 2019-12-25 05:03:59
问题 I have downloaded Tank Auth and am trying to create a folder when the user registers. I have edited the create_user() function in the users.php model like so but the folder does not get created. I am on Windows 7 so I thought maybe it was a permission thing. I turned off UAC, but it still does not work. I want the folder to end up it the root directory where the index.php is (outside of application folder). function create_user($data, $activated = TRUE) { $data['created'] = date('Y-m-d H:i:s'

CodeIgniter: removing 'index.php' from URL

耗尽温柔 提交于 2019-12-25 04:33:39
问题 I have answered this question previously and even posted the answer to it by myself. I tried most of the answered questions, but it still didn't work. The first question is regarding placement of the .htaccess file, should I keep it with application folder or inside it? and the next question is 'How should I remove the index.php from URL'? .htaccess code: RewriteEngine On RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !

Using CodeIgniter Tank-Auth as a package?

耗尽温柔 提交于 2019-12-12 00:58:15
问题 Is it possible to get Tank-Auth working as a package in CodeIgniter? I installed database schema into my MySQL database and copied all the folders of tank_auth in my app "third_party" folder "[CI]\application\third_party\tank_auth". The Screenshot : Session works fine. I can load tank_auth models $this->load->model('tank_auth/users'); I can load tank_auth views $this->load->view('auth/login_form'); But i can't access "auth" and "welcome" controllers. My application shows a 404. My log files

CodeIgniter: Tank Auth, Adding Date of Birth Issues

試著忘記壹切 提交于 2019-12-11 20:53:39
问题 Ok, So I have added a Date of Birth section for the registration process. I have done it in a weird way probably but it is a logical way to do it in my mind so as long as it works I am fine with it. I have created 3 dob fields (dob1, dob2, dob3 - for month, day, year). The problem I have right now is when a user registers the dob values are not stored properly into the database (it seems the values are just random, they show up as random numbers and letters). So I am curious as to what I am

Destroy Session but keep flashdata

烈酒焚心 提交于 2019-12-10 17:25:33
问题 I am using Tank Auth for user management in my CI 1.7.3 App. Everything is working fine but I'm trying to set a flash_message to be displayed when the user logs out. The problem is the $this->tank_auth->logout(); function destroys the session. I have modified the logout function in the Tank Auth library to look like: function logout() { $this->delete_autologin(); // See http://codeigniter.com/forums/viewreply/662369/ as the reason for the next line $user_session_data = array('user_id' => '',

Codeigniter : Showing error as ' Unable to select the specified database: project' in Windows XP

僤鯓⒐⒋嵵緔 提交于 2019-12-10 04:22:44
问题 I am using Windows XP and using EasyPHP as a server. I have integrated Codeigniter with TankAuth. But, when I try to open my assignment folder, it shows error as follows: Unable to select the specified database: project Filename: C:\Program Files\EasyPHP-12.1\www\assignment\system\database\DB_driver.php Line Number: 140 The code inside my database .php is as follows" $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'root'

Redirect to original page after logging in (Codeigniter)

限于喜欢 提交于 2019-12-06 08:43:53
The entire website requires a user to login before viewing the page. If the user is not logged in, he gets redirected to the login/registration page. Problem: When a user that is not logged in types in a url like http://www.domain.com/listings/1234 , he will be shown that page, but with a darkened page that prevents the user from interacting with the page (jQuery stuff, not a problem here), and a popup modal box with a link to the (Tank Auth) login page http://www.domain.com/login . After logging in from the login page, the user will be redirected back to the usual page one gets after logging

Codeigniter : Showing error as ' Unable to select the specified database: project' in Windows XP

强颜欢笑 提交于 2019-12-05 06:03:38
I am using Windows XP and using EasyPHP as a server. I have integrated Codeigniter with TankAuth. But, when I try to open my assignment folder, it shows error as follows: Unable to select the specified database: project Filename: C:\Program Files\EasyPHP-12.1\www\assignment\system\database\DB_driver.php Line Number: 140 The code inside my database .php is as follows" $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = 'root123'; $db['default']['database'] = 'project'; $db['default'][