Session puzzle... / why no new session?
| From: | Ryan A | Date: | Fri, 09 Jun 2006 17:29:29 +0000 |
| Subject: | Session puzzle... / why no new session? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237707@lists.php.net to get a copy of this message | ||
Hi,
I am working on a very simple script, basically adding
features to an older script, I'll write down the main
parts:
<?php
ini_set('session.name', 'COSTREAM_SESSION');
session_start();
## authenticate user code comes here
## log the user
my_log("login",$user,$_REQUEST['COSTREAM_SESSION']);
?>
and for logout.php I have:
-----
ini_set('session.name', 'COSTREAM_SESSION');
session_start();
unset($_SESSION['user']);
session_destroy();
-- redirect user comes here
-----
but when I check the DB the session id is always the
same hash, I should be getting new hashes everytime I
login right? I am running the logout script before
logging in again...why is it always giving me the same
hash?
What am I missing?
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com