#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    257
    Rep Power
    11

    a new session everytime


    Hello everybody
    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?

    Platform:
    Windows XP Pro SP1
    IIS 5.1 (i think can't really find a deffo version number)
    PHP
    MySQL
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,436
    Rep Power
    4539
    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
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    257
    Rep Power
    11
    I only know how to generate a session id one way and thats a PHP session.
    $sess_id = session_id();

IMN logo majestic logo threadwatch logo seochat tools logo