Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 04-05-2011, 09:51 PM   #1 (permalink)
Techno
 
Join Date: Jul 2008
Posts: 12
Default PHP Session Maintenance when cookies are disabled


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.
kumar.manoj is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-05-2011, 10:02 PM   #2 (permalink)
MMO Addict
 
amitava82's Avatar
 
Join Date: Jul 2004
Location: Bangalore
Posts: 1,474
Default re: PHP Session Maintenance when cookies are disabled

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
__________________
Steam Profile || Personal Page
Warp drive active. Approaching stargate.
amitava82 is offline   Reply With Quote
Old 06-05-2011, 09:24 AM   #3 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default re: PHP Session Maintenance when cookies are disabled

Create server side session using a table at the server.
ThinkFree is offline   Reply With Quote
Old 06-05-2011, 09:39 AM   #4 (permalink)
change is constant!!
 
khmadhu's Avatar
 
Join Date: Jan 2010
Location: Bengaluru
Posts: 445
Default re: PHP Session Maintenance when cookies are disabled

Quote:
Originally Posted by ThinkFree View Post
Create server side session using a table at the server.

this is a good one...
__________________
If you really wanna think, try to think from Atom to Universe!!

cpu: core i5 2500k, mobo: DP67BG, RAM:Corsair 8GB(4x2) 1600 Mhz, XFX HD 5770, 1TB seagate 6Gbps 7200 rpm , SAGA II 500W
khmadhu is offline   Reply With Quote
Old 09-05-2011, 05:37 PM   #5 (permalink)
Techno
 
Join Date: Jul 2008
Posts: 12
Default re: PHP Session Maintenance when cookies are disabled

Thanks for reply
Please elaborate,
how can I create server side session using a table at the server
kumar.manoj is offline   Reply With Quote
Old 10-05-2011, 09:31 AM   #6 (permalink)
change is constant!!
 
khmadhu's Avatar
 
Join Date: Jan 2010
Location: Bengaluru
Posts: 445
Thumbs up Re: PHP Session Maintenance when cookies are disabled

Quote:
Originally Posted by kumar.manoj View Post
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
__________________
If you really wanna think, try to think from Atom to Universe!!

cpu: core i5 2500k, mobo: DP67BG, RAM:Corsair 8GB(4x2) 1600 Mhz, XFX HD 5770, 1TB seagate 6Gbps 7200 rpm , SAGA II 500W
khmadhu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2