PDA

View Full Version : writing a session code?


gary pepper
08-24-2003, 05:49 AM
Im new to php and cookies and things like that html i can do:question,how do i write or can i get a code snipit for setting up sessions on my traffic exchange script so users cannot click the refresh button and get free credits for not viewing the page,and where would i insert the code (in the surf bar ,startpage,sign in page ect)help im a dummy?

ConfusedOfLife
08-24-2003, 06:55 AM
I don't think that you need to use sessions, instead you have to use cookies to prevent ppl from doing something twice. You have to cookie them and then for each new request you check if the person is cookied, if yes, then he/she is not a new user and you shouldn't give him/her any credit. If you wana know more about cookies, search the man pages for setCookie

Spookster
08-24-2003, 01:59 PM
You already have a thread open o this.

http://codingforums.com/showthread.php?s=&threadid=25152

Closing thread....