A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Another php question

964 views · started by HTML ·
#1
Another php question
Okay, so I have a form that send the account information of the user to "sucess.php" but say I have another file called 'trade.php' and i want to use the same users information from sucess.php, how do I send over the information without making them log in again?

Like you log in, it says you've logged in, then you go to another page, but you're still keeping track of the user? Do you understand?
#2
Use cookies?
#3
Riddle wrote:
Use cookies?


I used sessions and it worked, that's okay right?
#4
I believe sessions store cookies in the user's browser, so yeah. Not sure about this, but it sounds that way.
#5
Yea, use sessions. Thats how i do it and its how arti does it also. Its the way to go.

You could use cookies but those are easily editable. So they might be able to just switch accounts really fast if they wanted to. (Get into other peoples accounts) Its harder if your use sessions.
#6
GamerForce wrote:
Yea, use sessions. Thats how i do it and its how arti does it also. Its the way to go.

You could use cookies but those are easily editable. So they might be able to just switch accounts really fast if they wanted to. (Get into other peoples accounts) Its harder if your use sessions.


Thanks, looks like I can start bothering you with my php and sql questions, just to give riddle a break.
XD