To anyone out there.
Having virtually exhausted my mouse and shortened my fingers considerably with the sheer amount of typing, I finally come to the stage of asking a question.
Although new to php, I'm not new to Perl, HTML, Js, etc., so I'm not stupid with certain things or concepts. However, this one to do with cookies and sessions just has me pulling out my fingernails which, at the moment, is a far less painful alternative!
I've looked in all the usual places for code snippets, my modem didn't know what had hit it after all uploads and fairly exhaustive testing to see what worked and what didn't!
Upwards of possibly 100 hours searching, reading, finding (sometimes conflicting) descriptions on "How to.."s, and basically making the whole situation compound upon itself.
Now, back to the question-asking stage I mentioned:
What I'd like to do;
- On the Main page (index.php for ex. using code-style syntax)
If (new_visitor) {display User Sign Up link}
If (registered_user) {display "Hi Fred. Want to login?" - Yahoo! style}
display Log In box to all
I didn't have any luck with the "multitude" of Authentication scripts out there (Why? don't ask me!) but I managed to do that part from scratch for myself. (Not bad for 2 1/2 weeks worth of PHP! Or is it? )
Now comes the fun part - I presume that I will need a combination of both cookies and session vars: cookies for when users are not logged in (and for future possibilities - User preferences etc.) and also Sessions for when users are logged in. Am I on track here?
Any help would be most welcomed, greatly appreciated, and any other complementary gratitgudes which may apply.
As and when I get this whole thing 'done and dusted', I will be uploading the whole lot at a "tutorial", 'cos I haven't managed to find one I could relate to yet!
End of babbling... Eagerly awaiting any reply.
Many thanks,
R.