-
Alternative for system()
Hi,
I need to put a text file on my users computer; sort of like a temporary cookie. The problem is, that I can't use system().
This is what I'm doing:
-A user logs in
-a file is saved on the user's computer: including the name the user logged in with, and some other data
-the data is then used on different pages, to give the user more options, etc.
-the file is removed
- Mike
-
-
You could never do that with system(). You have to use cookies.
-
-
Or sessions, if you want it to be temporary (only for that session... single time at your site without closing the window or going to a different page that doesn't continue the session.)
Likely cookies, though.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
Mike,
What you are wanting to do goes against every coding doctrine that has ever existed in the PHP world, and just about every other C2C (client to customer) system that has ever existed.
If you cannot do it server-side, (the two suggestions mentioned above) don't do it.
-
-
Mike,
John is right; if you can't save that "file"(session or cookie) in your server's computer then you can't do it! If on the other hand you can do it server-side, a good tutorial(actually, there's some free chapters of a book) for session-security can be found at www.sitepoint.com/books! (Search for "PHP Anthology" book; if however you have any problem just give your email and I'll send it to you)!
Hope I Helped!!
Costas
-
-
I think I'll try to learn how to use cookies... this is really starting to bug me though
- Mike
-
-
Okay. Problem solved, thanks alot
- Mike
-
-
Sessions are much easier than cookies, and generally more secure, too.
-
-
Yeah, probably. But I couldn't understand sessions: I tried to figure out how to use them but couldn't, so I tried cookies, and I figured out those. My problem is solved so it doesn't really matter now, thanks anyway though
- Mike
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks