IT Community - Software Programming, Web Development and Technical Support

Session never expires in site unless you close the window

This is a discussion on Session never expires in site unless you close the window within the PHP Programming forums, part of the Web Development category; Hi Techie Can you please tell me ,such that the session should never expires in site unless you close the ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-23-2008, 02:12 AM
ursklakshmanan ursklakshmanan is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 14
ursklakshmanan is on a distinguished road
Default Session never expires in site unless you close the window

Hi Techie

Can you please tell me ,such that the session should never expires in site unless you close the window.How to set the apache configuration for this?
__________________
regards
K.Lakshmanan
[Web developer]

Last edited by ursklakshmanan : 01-23-2008 at 02:15 AM. Reason: for valid input
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-31-2008, 03:07 AM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: Session never expires in site unless you close the window

Hi,

You can check php.ini file session variable (session.gc_maxlifetime). If this variable 0 means session is no time limit to expiry and you can set time by seconds.

Example:

session.gc_maxlifetime = 1440 by default (24 minutes).
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass session values in popup window Mramesh HTML, CSS and Javascript Coding Techniques 3 03-13-2008 09:01 PM
How to open popup onmouseover and to close the same window onmouseout javascript? bluesky HTML, CSS and Javascript Coding Techniques 3 12-07-2007 06:51 AM
Need to close parent window after closing child window. S.Vinothkumar ASP and ASP.NET Programming 6 11-05-2007 06:08 AM
Is it possible to close the parent window (main web browser window) from a child win gp_logesh HTML, CSS and Javascript Coding Techniques 1 10-29-2007 04:53 AM
Session in child window Sivamurugan PHP Programming 3 09-11-2007 05:39 AM


All times are GMT -7. The time now is 07:17 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0