PHP Code:
$session->set($newdata);
it that a bug?
How can I save the session data into cookie? then encrypt cookie data.
$session set-bug?
|
PHP Code: $session->set($newdata); it that a bug? How can I save the session data into cookie? then encrypt cookie data.
11-15-2016, 08:40 PM
It's working for me. Are you forgot to add this line?
PHP Code: $session->start();
Need a free blog? try Mitha Blog. Here You can create a free website or build a blog with dozens of free, customizable, mobile-ready designs and themes.
(11-15-2016, 08:40 PM)ridho Wrote: It's working for me. Are you forgot to add this line?Thanks, I forget!!! it works well now. I am using the file to save session data, Can I save it to cookie via encrypt? Now, the session was saved as file in my hosting. how long will the session be cleaned? frankly I don't like to save the data in webhosing. because the reading speed is slow than from cookie.
11-15-2016, 09:06 PM
Yes you can, but for what? I think, this is a bad idea for storing session data to cookie although it's encrypted.
Soon, if you use $session->destroy(); If you don't like files for storing sessions, You can use database for storing sessions.
Need a free blog? try Mitha Blog. Here You can create a free website or build a blog with dozens of free, customizable, mobile-ready designs and themes.
(11-15-2016, 09:06 PM)ridho Wrote: Yes you can, but for what? I think, this is a bad idea for storing session data to cookie although it's encrypted.Thanks, it works well now. |