2DWorlds Forums
Sessions on PHP? - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Sessions on PHP? (/showthread.php?tid=4672)

Pages: 1 2


Sessions on PHP? - Chaos - 05-16-2011

I heard there AWESOME. But I have been coding in the way I do it forever...

People push me to use sessions though.

Opinions?


RE: Sessions on PHP? - noob007 - 05-16-2011

Sessions are useful, but you don't need to use them for everything.


RE: Sessions on PHP? - Chaos - 05-16-2011

Not for everything, just in certain circumstances. I am having trouble using them. Are they as good and clean as people say?


RE: Sessions on PHP? - noob007 - 05-16-2011

They're basically like a wrapper for cookies. You can store info in them the same way you would with cookies, except it's more secure (I think).


RE: Sessions on PHP? - toast - 05-16-2011

(05-16-2011, 01:24 AM)noob007 Wrote: They're basically like a wrapper for cookies. You can store info in them the same way you would with cookies, except it's more secure (I think).

i think its that if you close your browser and reopen it then the session ends

its for like keeping you logged in while you're browsing pages but logging you off when you close the window


RE: Sessions on PHP? - noob007 - 05-16-2011

(05-16-2011, 02:08 AM)toast Wrote:
(05-16-2011, 01:24 AM)noob007 Wrote: They're basically like a wrapper for cookies. You can store info in them the same way you would with cookies, except it's more secure (I think).

i think its that if you close your browser and reopen it then the session ends

its for like keeping you logged in while you're browsing pages but logging you off when you close the window

You can do that with plain cookies, too.


RE: Sessions on PHP? - Jacob__mybb_import1 - 05-16-2011

I've never used sessions.


RE: Sessions on PHP? - Rare - 05-17-2011

I have no idea what your talking about o.o


RE: Sessions on PHP? - Dignity - 06-11-2011

I use Razor, so easy. You don't need cookies to make sure a person stays logged in.

w3schools.com/razor/razor_reference.asp


RE: Sessions on PHP? - Glome - 06-11-2011

I love sessions better than cookies.

Never EVER use a cookie for a login code.