Welcome Guest, Not a member yet? Register   Sign In
multiple logins from one browser instance
#1

[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.
#2

[eluser]wizzer[/eluser]
by this i mean logging in with the same username and password but on different tabs.
#3

[eluser]mjsilva[/eluser]
I guess u can't since tabs shares the same sessions, yet u can use a different browser to simulate that.
#4

[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/?sess...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
#5

[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/?sess...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!




Theme © iAndrew 2016 - Forum software by © MyBB