Sessions on PHP?
#1
I heard there AWESOME. But I have been coding in the way I do it forever...

People push me to use sessions though.

Opinions?
[Image: chaosthegreat.png]
Reply
#2
Sessions are useful, but you don't need to use them for everything.
Reply
#3
Not for everything, just in certain circumstances. I am having trouble using them. Are they as good and clean as people say?
[Image: chaosthegreat.png]
Reply
#4
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).
Reply
#5
(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
[Image: 5widdh.png]
Siggy by McNoobster!
[Image: loading.gif]
Reply
#6
(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.
Reply
#7
I've never used sessions.
Reply
#8
I have no idea what your talking about o.o
Reply
#9
I use Razor, so easy. You don't need cookies to make sure a person stays logged in.

w3schools.com/razor/razor_reference.asp
Reply
#10
I love sessions better than cookies.

Never EVER use a cookie for a login code.
[Image: AmZJnA9.png]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)