Current location: Hot Scripts Forums » Programming Languages » PHP » [SOLVED] session expires reverting to login page


[SOLVED] session expires reverting to login page

Reply
  #1 (permalink)  
Old 06-03-08, 10:39 AM
melissa_octo7 melissa_octo7 is offline
New Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] session expires reverting to login page

Hi all,
This is my first post.

I have a website that allows people to login and update user information. The information update can take some people a long time. We are getting complaints that after a certain length of time the user tries to move to the next page, but they are directed to the login in page and all information is lost.

I'm fmailiar with Java, but new to PHP. I'm thinking there is a session inactivity variable that I can set?
Reply With Quote
  #2 (permalink)  
Old 06-04-08, 02:35 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Have a look at the PHP Sessions Manual, and especially to the session_cache_expire function.

There is indeed a parameter in the php.ini (the config file) that tells php when to end a session after a certain amount of time
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 06-04-08, 06:46 AM
melissa_octo7 melissa_octo7 is offline
New Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Ed,
I'm checking the sessions manual now.
Reply With Quote
  #4 (permalink)  
Old 06-05-08, 09:15 AM
melissa_octo7 melissa_octo7 is offline
New Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Configuring Sessions
In PHP, session management is configured in the php.ini file. To have a user's session start as soon as the user visits the website, the session.auto_start flag must be set to 1.

The session length is also set in the php.ini file with the session.gc_maxlifetime variable. The default value is 1440 seconds (24 minutes).
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing login page if not logged in eprots Script Requests 1 12-23-07 04:58 PM
Session Security (Continued from post below) nova912 PHP 1 09-05-06 09:29 AM
Tricky Login Page losse PHP 32 07-07-06 10:24 AM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 07:44 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.