March 22nd, 2004, 03:56 AM
a new session everytime
I was wondering if anyone could shed some light on a problem i have.
I have been writing a website in PHP with a authentication system to log users in and out. The code works great (thanks DevShed) it is my webserver setup that is causing me problems. It works fine on other webservers, just not on my one.
everytime i refresh the page I get a new session ID, meaning that as soon as a user logs on their session becomes invalid and they get logged out.
Anyone know why IIS would issue a new session ID everytime?
Windows XP Pro SP1
IIS 5.1 (i think can't really find a deffo version number)
March 22nd, 2004, 05:02 PM
What kind of session ID? An IIS session like Session.SessionID or some PHP session ID?
If it's a PHP session ID I guess you'll have to dig through your PHP installation. You may get strange IIS session ID results if your browser doesn't handle cookies properly, this is just guessing
The man who doesn't read good books has no advantage over the man who can't read them.
March 23rd, 2004, 03:22 AM
I only know how to generate a session id one way and thats a PHP session.
$sess_id = session_id();