Topic: cookie is set -> but doesn't remember login (Read 1416 times)
Atari ST fan
Posts: 7
54 credits Members referred : 0
« on: Jul 08, 2006, 04:04:20 AM »
Hello again Olaf!
I have just noticed that on the login page - if I check the box to "Remember Login", the cookie is set, however - you still have to login to the page if I quit the browser.
I'm not sure what is wrong? What I have below is close to what is in the original files... am I missing anything?
Here is what I have on the login page
Code:
if (isset($_POST['Submit']) or isset($_POST['Submit_x'])){ $my_access->save_login = (isset($_POST['remember'])) ? $_POST['remember'] : "no"; // use a cookie to remember the login $my_access->count_visit = true; // if this is true then the last visitdate is saved in the database $my_access->login_user($_POST['login'], $_POST['password']); // call the login method }
found it! - i just had to change the cookie path in db_config.php duh!
Olaf (or Rafi), where to was the cookie path changed. I am a real newbie and my cookie doesn't seem to work. The current path is APPLICATION_PATH or /classes/access_user/. Everything else seems to work. Would one of you like to give me some pointers here?
« Last Edit: Aug 11, 2006, 04:12:31 PM by scooter »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6357
38966 credits Members referred : 374
Olaf (or Rafi), where to was the cookie path changed. I am a real newbie and my cookie doesn't seem to work. The current path is APPLICATION_PATH or /classes/access_user/. Everything else seems to work. Would one of you like to give me some pointers here?
Scooter, (is this the german guy?) in which folder are the protected folders? If you're not sure then use this one "/"
What a dork
Posts: 17
110 credits Members referred : 0
« Reply #8 on: Aug 12, 2006, 12:55:42 PM »
Yes Olaf it's me. Thanks for helping me again. I was totally not hip with the php.ini file, but your answer let me into that as well. Yes, how did you guess I was German?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6357
38966 credits Members referred : 374
Yes Olaf it's me. Thanks for helping me again. I was totally not hip with the php.ini file, but your answer let me into that as well. Yes, how did you guess I was German?
you get it wrong, its about the access_user config file setting:
define("COOKIE_PATH", "/");
with this setting the cookie is valid over your whole website.
I thought you're a dutch guy (you know chello.nl), but the only scooter I know is the german DJ (Fuck the milenium, god is a DJ) and the scooter driven mostly by teenies. The last one is not really cool as nick name
by the way, it looks like that german people living in the netherlands are the biggest Fan's from Scooter...
What a dork
Posts: 17
110 credits Members referred : 0
« Reply #10 on: Aug 14, 2006, 02:12:57 AM »
It is an honour to be seen as German but it's Dutch here. I am sorry to let you believe I was German, but I was just curious to what you let to say that.
« Last Edit: Aug 14, 2006, 12:20:40 PM by scooter »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6357
38966 credits Members referred : 374
It's time to use PHP5!
« Reply #11 on: Aug 14, 2006, 09:26:05 AM »
please don't post so much offtopic content here, it's about the unrelated links (bad for SEO), use the pm for this maybe you will edit your post.