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

    Join Date
    Jun 2000
    Posts
    32
    Rep Power
    15
    quick question

    do I need to call session_start()
    on every page? and session_register("SESSION")


    to keep the variable session?
    when i've tried putting session_start() on any page...when i hit the back button it gives me an expired error
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    32
    Rep Power
    15
    Yes you do... I stopped using sessions because of people complaining about the expired errors.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Anti:
    Yes you do... I stopped using sessions because of people complaining about the expired errors.[/quote]

    Hi!
    I'm not sure what is the cause of this behavior because i didn't test it.
    You should check in [session] section of php.ini file to see if
    variable "session.cookie_lifetime" is set to 0.
    You can see there the reason of this value.
    Best regards!


Similar Threads

  1. session management help please
    By doctacrazy in forum PHP Development
    Replies: 1
    Last Post: December 24th, 2003, 05:44 PM
  2. PHP session management using MySQL?
    By the_aimbot in forum PHP Development
    Replies: 3
    Last Post: August 28th, 2003, 12:57 AM
  3. Custom session management headaches
    By the_aimbot in forum PHP Development
    Replies: 3
    Last Post: August 25th, 2003, 10:28 PM
  4. session start issue!
    By djl in forum PHP Development
    Replies: 0
    Last Post: July 29th, 2003, 01:37 PM
  5. PATH_INFO URL - Search Engine Friendly
    By Coopercentral2 in forum PHP Development
    Replies: 2
    Last Post: April 19th, 2003, 10:44 PM

IMN logo majestic logo threadwatch logo seochat tools logo