Welcome Guest, Not a member yet? Register   Sign In
New CodeIgniter "instance" destroys current session?
#9

[eluser]IanMcQ[/eluser]
This is really weird. All of my CI instances are successfully receiving and reading the "ci_session" cookie that is set. Within this cookie, there is a value key called "logged_in" which is pretty self-explanatory. On each CI instance, there's a hook that is ran and it checks whether or not the user is logged in (using the "logged_in" value) and if the user IS logged in, runs a query to update the cookie with the databases. What's happening on my newest CI copy is that it's not reading the "logged_in" value set at login and therefore isn't running the hook and so my session data is replaced with the traditional CI session cookie with these values:

Code:
[array]
(
     'session_id'    => random hash,
     'ip_address'    => 'string - user IP address',
     'user_agent'    => 'string - user agent data',
     'last_activity' => timestamp
)
which is why it appears that I'm "logged out."

Any ideas as to why my newest copy of CI wouldn't be picking up the session cookie data set by other CI instances? In my config files for all instances these are the values for the cookies:

Code:
$config['cookie_prefix']    = "";
$config['cookie_domain']    = ".thedailyneopets.com";
$config['cookie_path']        = "/";
AHHH! Thanks for your help.


Messages In This Thread
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 12:01 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 01:23 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 01:26 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 01:33 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 01:39 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 01:54 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 02:00 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 06-30-2008, 02:03 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 07-01-2008, 01:02 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 07-02-2008, 11:05 AM
New CodeIgniter "instance" destroys current session? - by El Forum - 07-02-2008, 01:51 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 09-04-2008, 04:57 PM
New CodeIgniter "instance" destroys current session? - by El Forum - 09-04-2008, 05:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB