FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Pass varible with out URL and SESSION
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Pass varible with out URL and SESSION [message #179986 is a reply to message #179984] Mon, 24 December 2012 23:25 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 24/12/12 21:36, J.O. Aho wrote:
> On 24/12/12 16:43, Adrian Tuddenham wrote:
>> Scott Johnson <noonehome(at)chalupasworld(dot)com> wrote:
>
>>> As Jerry mentioned, you still have to use one of the 3 methods. POST,
>>> GET, COOKIE.
>>>
>>> If you use a frame, invisible or not, once you resend the header to load
>>> another page, from the root page or frame (does not matter), you still
>>> have to send variables as mentioned above.
>>
>> Presumably there is nothing to stop you writing the variable to a file
>> and then reading it back on the next page?
>
> If you want to store the data, you need to send it to the server with
> help of GET/POST/PUT, Andy was suggesting that he could store values
> without sending the data to the server, this could be done in a way with
> javascript, but the server wouldn't be able to act on the data and you
> need to make it somewhat crafty design which is easily broken by the user.
>
>
>> The only problem, with a busy website, would be identifying whether the
>> same user is requesting that variable as the one who wrote it.
>
> This is why you use sessions, the session cookie can of course be
> hijacked, but it will keep track of who is associated with what data.
>
>
>> Could
>> that be taken care of by storing an array in the file and associating
>> each variable with each user's IP number? As long as the IP number
>> didn't change during a session, this would select the wanted variable
>> for that user.
>
> You could do that, but you would get issues when you have more than one
> user from the same ip or a user who change ip during the visit at the
> site. I would say the solution is a big step backwards compared to
> sessions.
>
well cookies, anyway. I didn't find sessions gave me anything using was
cookies didn't.

The POST method is good but wont survive a browser shutdown. Most
browsers store cookies on the local hard drive.




--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simple dating site
Next Topic: Current PHP implementation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Jul 01 07:27:49 GMT 2024

Total time taken to generate the page: 0.04557 seconds