Welcome Guest, Not a member yet? Register   Sign In
sessions related problem
#1

[eluser]steel_slasher[/eluser]
i have a small problem with the sessions its not that i dont understand something its that the custom sessions sort of delete themselves when i go to a different page from the one they were created, i checked my cookies and on the page the custom cookies were made they are around twice in length but if i move to another page on the same server the length goes down in half

here is my config for sessions
Code:
$config['sess_cookie_name']        = 'cfagcms';
$config['sess_expiration']        = 0;
$config['sess_encrypt_cookie']    = TRUE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']        = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent']    = TRUE;

it could be that i am using 1.5.4 but i will check
#2

[eluser]adamp1[/eluser]
I had this issue and I know many other people did. I know for me it was because I hadn't specified the right cookie domain details. So whenever I went to a new page it didn't think I had a session ID, and thus created a new one. You say you have check the cookie settings but I know other people have had the same issue. Why not turn encryption off and try to see what is stored in the session cookie 'cfagcms' see if its what you expect?

Edit: Using 1.5.4 should have nothing to do with this, but its always best to use the most update to date version if possible.
#3

[eluser]steel_slasher[/eluser]
thanks and yeah i will check the things you pointed and report back after
#4

[eluser]steel_slasher[/eluser]
well i had to set the domain to my hosts domain because i am on a shared host but i can only get the session data without encryption which means my CI is not decoding the encrypted data meaning i cant use automatic encryption

so in a nutshell the session library has problems running when i use it and some others




Theme © iAndrew 2016 - Forum software by © MyBB