![]() |
multiple logins from one browser instance - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: multiple logins from one browser instance (/showthread.php?tid=24080) |
multiple logins from one browser instance - El Forum - 10-30-2009 [eluser]wizzer[/eluser] Hello, How would i go about allowing multiple logins on one browser instance? How would I modify CI sessions to accomplish this. Apologies, I am new to CI and do not know much of its inner workings. I have looked through the code but am still stumped. Any help/advice would be greatly appreciated. Wizzer. multiple logins from one browser instance - El Forum - 10-30-2009 [eluser]wizzer[/eluser] by this i mean logging in with the same username and password but on different tabs. multiple logins from one browser instance - El Forum - 10-30-2009 [eluser]mjsilva[/eluser] I guess u can't since tabs shares the same sessions, yet u can use a different browser to simulate that. multiple logins from one browser instance - El Forum - 10-30-2009 [eluser]KarlFranz[/eluser] I already do it. You need to create your MY_Session.php and MY_config.php. what I have done : Make follow a Session_id in querystring http://mysite.com/controler/action/?session_id=1234567890 for your session, you only need to transform your userdata in a array of user data. your session_id is the key to retrive the value you want. MY_Session function userdata($item) function set_userdata($newdata = array(), $newval = '') MY_Config function site_url($uri = '', $add_sessid = TRUE) the function you need to make. Mathieu multiple logins from one browser instance - El Forum - 10-30-2009 [eluser]alboyd[/eluser] [quote author="KarlFranz" date="1256925680"]I already do it. You need to create your MY_Session.php and MY_config.php. what I have done : Make follow a Session_id in querystring http://mysite.com/controler/action/?session_id=1234567890 for your session, you only need to transform your userdata in a array of user data. your session_id is the key to retrive the value you want. MY_Session function userdata($item) function set_userdata($newdata = array(), $newval = '') MY_Config function site_url($uri = '', $add_sessid = TRUE) the function you need to make. Mathieu[/quote] Oh yeh makes total sense! |