Part of the EllisLab Network
   
3 of 3
3
reworked ci_session to use with databases
Posted: 28 December 2006 01:43 PM   [ Ignore ]   [ # 31 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  310
Joined  08-16-2006
mrapples - 28 December 2006 02:31 AM

have you eliminated the possibility that it is something repetitive in your code?  i only ask because i cannot reproduce it

No, I haven’t and this is most likely the cause. The code in question isn’t my own and I wanted to first confirm the problem wasn’t with Db_session before proceeding to debug. Thanks for the confirmation.

Profile
 
 
Posted: 07 February 2007 02:10 AM   [ Ignore ]   [ # 32 ]  
Summer Student
Total Posts:  7
Joined  11-02-2006
Derek Allard - 13 September 2006 09:56 AM

Hey Dready - welcome to CI!

In the “application/config/config.php” you already have the option to set your cookies to use the database.  Does your solution offer something different, or this your solution to your needs just done a different way?

 

HI!!!

I am a newbi in codeigniter framework. em facing little problem of seesions…the problem is that i have added a java applet (radupload) which is used to upload multiple files to the server….. it has been added and working fine for the first time only and after that it takes me to the login screen again hence it seems it destroys all session varibles… Is there any one who can help me out with this session problem..

Any help shall be highly appreciable.

Thanks

Profile
 
 
Posted: 05 March 2007 05:17 AM   [ Ignore ]   [ # 33 ]  
Grad Student
Rank
Total Posts:  70
Joined  02-20-2007
smaida - 12 December 2006 01:51 AM

Hi All,

I’m fairly new to CI and I’ve been trying to get Auth working for a few hours.  It’s 2am so my minds not with it.  I keep getting the following error:

An Error Was Encountered
Unable to load the requested class: db_session

I’m fairly certain that I uploaded everything to the correct folders.  I’m obviously missing something.

Thanks for the help.
-Shawn

I noticed a solution was never posted for this.. to fix rename the DB_Session.php library to db_session.php

I just ran into it when testing my app on our production linux server.

JC

Profile
 
 
Posted: 05 March 2007 06:20 AM   [ Ignore ]   [ # 34 ]  
Research Assistant
RankRankRank
Total Posts:  917
Joined  07-10-2006

I do not believe that CI cares about filename case sensitivity, but the first letter of the class needs to be uppercase when loading a library (Db_session).

Profile
 
 
Posted: 05 March 2007 06:39 AM   [ Ignore ]   [ # 35 ]  
Grad Student
Rank
Total Posts:  70
Joined  02-20-2007
esra - 05 March 2007 06:20 AM

I do not believe that CI cares about filename case sensitivity, but the first letter of the class needs to be uppercase when loading a library (Db_session).

The default filename for the library for db_session is DB_Session.php.  The install instructions say to include db_session as a default library.  Code Ignitor looks for a file called either Db_session.php or db_session.php in this case.  Therefore a rename is required for CodeIgnitor to pick it up due to the case problem.

James

Profile
 
 
Posted: 30 May 2007 08:52 PM   [ Ignore ]   [ # 36 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  101
Joined  10-01-2006

While we were fixing Active Record bugs for BlueFlame, I discovered an issue with db_sessions on line 346.

Original:

$this->object->db->where("last_activity < {$expire}");

Fixed:

$this->object->db->where('last_activity <', $expire);
 Signature 

Check out the BlueFlame Project!

Profile
 
 
   
3 of 3
3
 
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: 120248 Total Logged-in Users: 44
Total Topics: 126381 Total Anonymous Users: 3
Total Replies: 664670 Total Guests: 383
Total Posts: 791051    
Members ( View Memberlist )