#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    24
    Rep Power
    0
    hi guyz

    I have a question regarding to the new session management feature from PHP4.

    I have put this function on top of each php file.

    session_start();

    if a session expired, the internet browser(eg. IE) have a screen telling the user to exit or 'refresh' the screen.

    is there anyway I can re-direct the browser and open a specified webpage if a session is expired?

    is it something related to the .htaccess file?

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

    Join Date
    May 2000
    Posts
    30
    Rep Power
    14
    One hacked upway is that at the beginning of each page, or perhaps in an included page include("somepage.php"); could do all of your checking, using the
    session_is_registered (session); command checking to see if a specific variable has been set in the session if the session expires than I belive that variable will not be setanymore and that is when the redirection could happen. Hope that helps, I am still learning sessions myself.

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