CodeIgniter Forums
Custom CI session library for MongoDB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Custom CI session library for MongoDB (/showthread.php?tid=35513)



Custom CI session library for MongoDB - El Forum - 11-01-2010

[eluser]Unknown[/eluser]
Hi, just in case someone else happens to be working with both Mongo and CI... I extended a custom session library from the CI 1.7.2 CI_Session class to enable storing data into MongoDB instead of an SQL database. As the default class is not really designed to be extended this way, the implementation might not work on other versions, but if you are looking for a way to use CI sessions with Mongo, check this out.

You can download the Mongo session class from here: http://www.precond.com/files/CIMongoSession.zip


Custom CI session library for MongoDB - El Forum - 02-16-2011

[eluser]dioramayuanito[/eluser]
[quote author="Juhana Räsänen" date="1288660332"]Hi, just in case someone else happens to be working with both Mongo and CI... I extended a custom session library from the CI 1.7.2 CI_Session class to enable storing data into MongoDB instead of an SQL database. As the default class is not really designed to be extended this way, the implementation might not work on other versions, but if you are looking for a way to use CI sessions with Mongo, check this out.

You can download the Mongo session class from here: http://www.precond.com/files/CIMongoSession.zip[/quote]

Your work is very Good !

but now, i have to remake your code for CI 2.0

have u change your code for CI 2.0 ?
just 4 my curiosity...

THANKS ALOT!


Custom CI session library for MongoDB - El Forum - 02-16-2011

[eluser]Unknown[/eluser]
Hi, unfortunately not, but the code is there for grabs, so go for it! ;-)


Custom CI session library for MongoDB - El Forum - 02-16-2011

[eluser]Basketcasesoftware[/eluser]
Maybe I might even take the time to find out what Mongo is! :red:


Custom CI session library for MongoDB - El Forum - 02-16-2011

[eluser]dioramayuanito[/eluser]
[quote author="Basketcasesoftware" date="1297864673"]Maybe I might even take the time to find out what Mongo is! :red:[/quote]

Applicant : I've never learn SQL bos...
Bos : OK You got in! You've learn NoSQL !

"MongoDB , NoSQL , NoWorry , ..."

wkakakakakak!


Custom CI session library for MongoDB - El Forum - 02-16-2011

[eluser]Basketcasesoftware[/eluser]
LOL. Ok. Another DB system I take it? Years ago (mid-1980s) I coded a multiple-linked database for the U.S. Government. I did it in DBase II. Under DOS 3. During this time the SQL "standard" was sort of being developed. All the things SQL systems do for you I had to write the code for myself. Flash forward a few years and I start grabbing references on SQL. I found there were a LOT of very thick books that were full of trivial examples and limited info on what really made SQL so special. SQL reminds me of COBOL as far as linguistic structure. Very much so. And with less control over how data was manipulated than what I had in that early version of DBase. Sad.


Custom CI session library for MongoDB - El Forum - 02-17-2011

[eluser]dioramayuanito[/eluser]
[quote author="D10R4M4" date="1297863040"][quote author="Juhana Räsänen" date="1288660332"]Hi, just in case someone else happens to be working with both Mongo and CI... I extended a custom session library from the CI 1.7.2 CI_Session class to enable storing data into MongoDB instead of an SQL database. As the default class is not really designed to be extended this way, the implementation might not work on other versions, but if you are looking for a way to use CI sessions with Mongo, check this out.

You can download the Mongo session class from here: http://www.precond.com/files/CIMongoSession.zip[/quote]

Your work is very Good !

but now, i have to remake your code for CI 2.0

have u change your code for CI 2.0 ?
just 4 my curiosity...

THANKS ALOT![/quote]

Hello Everybody !

please look at /forums/viewthread/181365/

if you use CI 2.0...

thx Juhana !