ok, i think i've gotten the hang of oo php and understand much of the format of mytopix (after a few weeks of review)
i am stuck on one issue, though. is it better to use all sessions? or use a combination of sessions with cookies? if i have an affiliate script, i can very easily use a cookie to track something. is it better to use sessions with this? since sessions don't store information on a person's computer, they expire upon exit... are sessions the best way to go? or will there have to be at least one type of cookie set on the user's computer?
thank you.
sessions and cookies theory
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Well, Sessions, first of all, aren't really part of 'oo'.
Summary Sessions just don't last long enough to do "User Tracking". However, if you're building an authentication system, Sessions should be enough. A Remember Me type function would require cookies in authentication (but it does water down security).
No "Remember me" option for you then. Sessions expire very quickly and don't offer persistent data, but that's often enough for most authentication things.is it better to use all sessions?
Probably. Keep cookies down to a minimum though: you may only need them for cross-session browsing.or use a combination of sessions with cookies?
If you're tracking users, yeah, use cookies. Totally man.if i have an affiliate script, i can very easily use a cookie to track something.
If you want to track users, you're going to have to use Cookies.is it better to use sessions with this? since sessions don't store information on a person's computer, they expire upon exit... are sessions the best way to go? or will there have to be at least one type of cookie set on the user's computer?
Summary Sessions just don't last long enough to do "User Tracking". However, if you're building an authentication system, Sessions should be enough. A Remember Me type function would require cookies in authentication (but it does water down security).