Can we use session when the cookie is disabled in the browse

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Can we use session when the cookie is disabled in the browse

Post by softsolvers »

Can we use session when the cookie is disabled in the browser,I mean in internet explorer when we disable the cookie can we use session to pass the value from one page to other.
User avatar
mendingo
Forum Commoner
Posts: 28
Joined: Sun May 23, 2004 1:27 pm

Post by mendingo »

I don't know for sure, but i'm pretty sure you can. Sessions are dealt with server side, with the information being stored in a folder by PHP. As far as I am aware, cookies have nothing to do with sessions.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

in order for the sessions to work without cookies, the server, or you can add the session id to the url being passed around. Normally, the server should handle this on it's own... given the default settings.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

He means test to see if cookies are enabled, and if they aren't, use sessions instead.
Post Reply