in reply to Re: data persistence
in thread data persistence
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: data persistence
by olus (Curate) on Dec 12, 2007 at 16:18 UTC | |
You have to identify the requester, and the only way you seem to have is the env REMOTE_ADDR. Note that you cannot always trust this value since users behind proxies will have the same IPs. So, on every request, instead of recreating the temp file, use append if the record for the IP is not present. Make sure you treat concurrent access to the file. Another way is to create a file for each IP that hits your server. | [reply] |
by need_help21 (Novice) on Dec 13, 2007 at 13:18 UTC | |
| [reply] [d/l] |
by marto (Cardinal) on Dec 13, 2007 at 13:46 UTC | |
You need to make some effort, you have just posted some code, with no description of any problems you are having. Help us to help you. Are you using all of these modules? You have use CGI::Session; but never use it. Did you see the messages use strict; reports about @raw_data? Do you intend to have everone use the same file "temp"? Perhaps you should read How do I post a question effectively?. You still have not told us why using Cookies/Sessions "does not work". Hope this helps Martin | [reply] [d/l] [select] |
by olus (Curate) on Dec 13, 2007 at 18:54 UTC | |
Instead of 'temp', give each request a file of their own. And because that may lead to a huge list of filenames, consider building a tree of directories based on the first numbers of the IP.
| [reply] [d/l] [select] |