Xyphon Posted December 16, 2007 Share Posted December 16, 2007 Well, for promo I must use sessions since cookies can be deleted. How do I set a session to go on for example 99999999999999999999999999999999999999999 so they cant get the promo twice? Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 16, 2007 Share Posted December 16, 2007 Setting a session to last a long time won't fix your problem because the session cookie or the session ID being passed on the end of a url can be deleted as easily as a regular cookie. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416302 Share on other sites More sharing options...
revraz Posted December 16, 2007 Share Posted December 16, 2007 Even easier, just close your browser. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416303 Share on other sites More sharing options...
The Little Guy Posted December 16, 2007 Share Posted December 16, 2007 You most likely will have to require the person to create an account, and not allow the account to enter in a promo code twice Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416305 Share on other sites More sharing options...
Xyphon Posted December 16, 2007 Author Share Posted December 16, 2007 Oh, I get it. I have to put PROMO in the DB, right? Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416307 Share on other sites More sharing options...
The Little Guy Posted December 16, 2007 Share Posted December 16, 2007 Yeah.... I think if I assume your saying what I think. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416308 Share on other sites More sharing options...
Xyphon Posted December 16, 2007 Author Share Posted December 16, 2007 Like, I reset the database and add a promo field, default=No, then I change it to yes when they submit. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416309 Share on other sites More sharing options...
revraz Posted December 16, 2007 Share Posted December 16, 2007 Thats one way for sure. You just have to try and eliminate them from registering more than once with different usernames. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416403 Share on other sites More sharing options...
Northern Flame Posted December 16, 2007 Share Posted December 16, 2007 or you can record there IP Address Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416406 Share on other sites More sharing options...
The Little Guy Posted December 16, 2007 Share Posted December 16, 2007 or you can record there IP Address IP addresses change... Most people's change daily or weekly, or every time they start their computer. Link to comment https://forums.phpfreaks.com/topic/81939-setting-a-timeout-for-sessions/#findComment-416424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.