This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-09 12:50:30

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

PHP SESSIONS are messed up

ok.  Recently, I made a login system for my website.  Soon after logging in, I discover that it is logging me in everywhere.  As in, when people go to my website, I'm logged in.  I took it down immediately and removed the code.  I tried re-coding it, but the same thing happened.  Is this supposed to be happening, and am I supposed to be using cookies instead?  I'm confused, and frustrated!!


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#2 2012-08-09 13:16:44

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: PHP SESSIONS are messed up

bump plz help


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#3 2012-08-09 14:11:03

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: PHP SESSIONS are messed up

Are you properly using session_start, and $_SESSION['variable'] format?

Offline

 

#4 2012-08-09 15:13:10

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: PHP SESSIONS are messed up

If sessions are a problem, then just use cookies. They are much easier.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#5 2012-08-09 15:59:41

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: PHP SESSIONS are messed up

LS97 wrote:

Are you properly using session_start, and $_SESSION['variable'] format?

Yep and yep


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#6 2012-08-09 16:01:15

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: PHP SESSIONS are messed up

jvvg wrote:

If sessions are a problem, then just use cookies. They are much easier.

Actually, the concept is slightly more complicated than just using a session.  But I will look into it.


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#7 2012-08-09 16:24:42

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: PHP SESSIONS are messed up

I can't help without looking at your code.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

Board footer