DIGIT-ARC read-only archive · snapshot: July 23, 2026

PHP Session Maintenance when cookies are disabled

6 posts · originally from https://geek.digit.in/community/threads/php-session-maintenance-when-cookies-are-disabled.140229/

K
kumar.manoj Original post #1
May 4, 2011 at 9:51 PM
Hello friends!

I am new to PHP programming and developing a small website project. In this project I have login for users and I am maintaining session for user's login.

But I have problem with login when cokkies are disabled.

Please suggest me any solution to maintain session when cokkies are disabled at users end or any suggestion so that I can inform user that his/her browser's cokkies are disabled.
amitava82
May 4, 2011 at 10:02 PM
Write a test cookie and see if you can read it. If not, inform user that cookie is disabled.
You can use session ID with URL parameter. PHP: Passing the Session ID - Manual
T
May 6, 2011 at 9:24 AM
Create server side session using a table at the server.
K
May 9, 2011 at 5:37 PM
Thanks for reply
Please elaborate,
how can I create server side session using a table at the server
khmadhu
khmadhu #6
May 10, 2011 at 9:31 AM
Thanks for reply
Please elaborate,
how can I create server side session using a table at the server

you need to create a table to store the session and its timeout and cross check with the clients session ID. a detailed info can be found here...

Session Management Using PHP, Part 2: Server-side Sessions – LINUX For You Magazine