Welcome Guest, Not a member yet? Register   Sign In
My Simple Session Library
#1

[eluser]onecode[/eluser]
Try to share my own session library, still using config.php for configuration, still using a same function with CI Session, but i'm using PHP Native Session and ability to store in database using model...my attachment including :

1.Session.php (place this file in application/libraries)
2.session folder for model (place this folder in application/model)

how to use:

simple call this library just like another library :
Code:
$this->load->library('session);

and done...you can set this library in autoload too...i hope this library can help someone out there... Smile
#2

[eluser]onecode[/eluser]
i'm forget something..this a sql for create session table..i'm using a different table structure for this library

Code:
CREATE TABLE `your_database_name`.`my_session_table_name` (
`session_id` varchar( 255 ) NOT NULL ,
`session_data` text NOT NULL ,
`session_ip` varchar(20) NOT NULL ,
`session_agent` varchar(255) NOT NULL ,
`session_time` int(50) NOT NULL ,
PRIMARY KEY ( `session_id` )
) ENGINE = MYISAM ;
#3

[eluser]Unknown[/eluser]
Hi oncecode !
I want to find some more session libs to use in my project.
So can you explain more clearly about your new session lib ?
Thanks for your time.

Regard,
Sven




Theme © iAndrew 2016 - Forum software by © MyBB