Originally posted by superwormy
Do PHP Sessions Use Cookies IF YOU ARE NOT PASSING THE PHP SESSION ID THROUGH THE URL?
Yes by default, but you have some choices in the php.ini whether to go with one or the other exclusively.
Originally posted by superwormy
How compatible are Session Cookies? I have found that there are lots of problems with Cookies, they seem kinda flaky. Are PHP Session Cookies as flaky as regular cookies? ( ie different browsers require diff paramaters to be set and such, people turning them off... )
Usually parameter problems are by people not setting them properly. Session cookies only have two parameters, a name and a value. The cookie standard is pretty stable, although an occasional browser bug pops up. People will always turn them off. They should have named session cookies something else.
Originally posted by superwormy
Can I detect whether or not a user has accepted Sessions, and switch to passing it through the URL if they havn't? Or rather, HOW do I detect this?
I assume you meant cookies instead of sessions? Sessions are an exchange of interchanges between the client and server which state is maintained from one page to the next, cookies are a tool used to help maintain them. If you are using PHP $_SESSION's, then PHP does it for you. If you want to manage your own sessions, you try to read the cookie and if it is not there you append the URL's.
Originally posted by superwormy
Is there a way, OTHER THAN PASSING VARIABLES THROUGH THE URL, and OTHER THAN COOKIES ( wether that be sessions or regular ), to keep track of a user while their on your website? Somethign RELAIABLE ( ie, not IP address )
There is always HTTP authentication:
http://httpd.apache.org/docs/howto/auth.html
Originally posted by superwormy
Say I'm passing a Session ID through the URL. I close the browser, then use the history to navigate back to a page which is passing the Session ID through the URL. Will I be resuming the previous Session ID, or will I be assigned a new one?
You will start a new one([edit]unless the page has the session ID in the URL. If the page came from a POST then it will not. POSTed pages carry the session ID in a hidden input[/edit]). The session ID is the only link PHP keeps with you, you start a new session even if you type the address in the URL (unless you get a cached page, in which case you will be able to resume if the session has not timed out)
[EDIT] I should have mentioned, if $_SESSION's are the ONLY tool used to authenticate the user, then you will be able to get somebody elses session by typing THEIR session ID in the URL, aka 'session hijacking'[/EDIT]
Originally posted by superwormy
Thanks for all the help!
You're welcome.
Originally posted by superwormy
I'm still a newbie, so feel free to respond to my dumb questions with foul language and degrading comments! :-) I won't take offense I promise!
Not right now, but I'll take a raincheck.