Part of the EllisLab Network
   
 
Settings CI Session expiration per session + expiration upon browser session end
Posted: 14 May 2007 12:40 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  529
Joined  06-16-2006

I’d like to see two improvements to the CI Session library.

First of all I need to set session expiration per session for implementing a “remember me” checkbox (so expiration is either browser end or practicaly non-expirering).

Within that request is another CI flaw - you can’t set session to expire at browser end.

Those are the features I want.


Cheers,
Zack

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 14 May 2007 01:37 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  472
Joined  09-26-2006

ZachariasDk, This is a feature which has been requested several times. If you are just adding your voice
to this request, that’s great.

If you are not aware of some other options, you can look here:
To use PHP’s native session handling, with a nice CI library interface http://codeigniter.com/wiki/Native_session/
OR
If you want to use a CI replacement library for the standard session library, try http://codeigniter.com/wiki/OB_Session/

I would not recommend doing the remember me functionality the way you are suggesting, but you’re the boss.
Read http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice
and http://www.jaspan.com/improved_persistent_login_cookie_best_practice

 Signature 

Old programmers never die, they just parse away.

Profile
 
 
Posted: 15 May 2007 05:46 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  529
Joined  06-16-2006

I am aware of the other options, but I’d prefer CI’s solution as it fits my needs perfectly except the two features I mentioned.

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120480 Total Logged-in Users: 26
Total Topics: 126554 Total Anonymous Users: 1
Total Replies: 665404 Total Guests: 270
Total Posts: 791958    
Members ( View Memberlist )