Jump to content

Issues with cookies/sessions.


notsophpfreakish

Recommended Posts

I'm very new to PHP and have been working on my site idea for the past couple of weeks and have been working on the basic sign up, logging in, activation and log out.

 

The log out works fine, but when I sign in with a second username, the first user name's information comes up instead. Here's the log out script:

 

<?php

session_start();

session_unset();

session_destroy();

 

setrawcookie('user');

?>

 

I tried a bunch of other stuff but nothing seems to work. Closing the window and stuff works fine but obviously, that's not the safest method.

Link to comment
https://forums.phpfreaks.com/topic/248662-issues-with-cookiessessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.