Welcome Guest, Not a member yet? Register   Sign In
session datebase delete
#1

[eluser]Gabi3xz[/eluser]
What to do with session remaining in database ?
should be deleted by me?
or delete themselves after a while automatic?
#2

[eluser]InsiteFX[/eluser]
They will be deletd by themselves in time. That's the way sessions work with garbage collection.
#3

[eluser]Gabi3xz[/eluser]
and what is the advantage with session in datebase?
#4

[eluser]CroNiX[/eluser]
[quote author="Gabi3xz" date="1337533726"]and what is the advantage with session in datebase?[/quote]regular CI sessions use cookies for session data storage, which is limited to 4kb (cookie limitation). CI Database sessions are only limited by size of the datatype that the user_data field uses.
#5

[eluser]Gabi3xz[/eluser]
and how can I used cookie with button of remember me?
because cookies added automatically in datebase.
How create $this->session->set_userdata($newdata);
for remember me on or of?

it is well this example?
Code:
//remember me "ON" used Session Data
elseif
//remember me "OF" used Session Flashdata
or how?
#6

[eluser]InsiteFX[/eluser]
You can create your own cookies! Remember me cookies do not use the session cookie.

See the CI cookie helper




Theme © iAndrew 2016 - Forum software by © MyBB