Welcome Guest, Not a member yet? Register   Sign In
cookies dont work correct
#1

[eluser]axisdude[/eluser]
Im having a problem with the cookies from my site.
Each time people need to login again...
I have tried many settings but nothing will help
can some1 please tell me the correct settings for the config?
My site is on linux server in var/html/folder
in the "html" are more sites hosted in different folders, all with CI.
here is my config:
Code:
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| "session_cookie_name" = the name you want for the cookie
| "encrypt_sess_cookie" = TRUE/FALSE (boolean).  Whether to encrypt the cookie
| "session_expiration"  = the number of SECONDS you want the session to last.
|  by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.
| "time_to_update"        = how many seconds between CI refreshing Session Information
|
*/
$config["sess_cookie_name"]        = "xu2";
$config["sess_expiration"]        = 72000;
$config["sess_encrypt_cookie"]    = TRUE;
$config["sess_use_database"]    = TRUE;
$config["sess_table_name"]        = "sessions";
$config["sess_match_ip"]        = FALSE;
$config["sess_match_useragent"]    = TRUE;
$config["sess_time_to_update"]     = 300;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| "cookie_prefix" = Set a prefix if you need to avoid collisions
| "cookie_domain" = Set to .your-domain.com for site-wide cookies
| "cookie_path"   =  Typically will be a forward slash
|
*/
$config["cookie_prefix"]    = "adultpics";
$config["cookie_domain"]    = ".adultpichost.eu";
$config["cookie_path"]        = "/";

/*

must i change cookie path?
is all correct?
i tried setting sess_expiration to 0 but it dont work. still loggedout after browser close.
btw in my database i can only find dlsessions table, but no sessions table.
my url: www.adultpichost.eu


Messages In This Thread
cookies dont work correct - by El Forum - 03-06-2010, 08:54 AM
cookies dont work correct - by El Forum - 03-06-2010, 12:46 PM
cookies dont work correct - by El Forum - 03-06-2010, 03:25 PM
cookies dont work correct - by El Forum - 03-06-2010, 03:45 PM
cookies dont work correct - by El Forum - 03-06-2010, 03:47 PM
cookies dont work correct - by El Forum - 03-06-2010, 03:59 PM
cookies dont work correct - by El Forum - 03-07-2010, 12:27 PM
cookies dont work correct - by El Forum - 03-08-2010, 10:34 AM
cookies dont work correct - by El Forum - 03-08-2010, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB