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 #179981 is a reply to message #179980] Mon, 24 December 2012 16:07 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 24.12.2012 16:43, schrieb Adrian Tuddenham:
> Scott Johnson <noonehome(at)chalupasworld(dot)com> wrote:
>
>> On 12/24/2012 5:41 AM, Adrian Tuddenham wrote:
>>> Andy <andy(at)NOSPAMmanyplay(dot)com> wrote:
>>>
>>>> > well exactly. There are only three ways to keep track of a browser state
>>>> > between pages: cookie, GET or POST.
>>>>
>>>> In the words of Yoda "There is another"...
>>>>
>>>> You guys won't like it but I thought it worth mentioning that you can also
>>>> use a hidden frame and store any variable to be passed back to the next
>>>> content page.
>>>
>>> As a complete beginner, I would be grateful if you could elaborate on
>>> that.
>>>
>>>
>>
>> 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?
>
> The only problem, with a busy website, would be identifying whether the
> same user is requesting that variable as the one who wrote it. 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.

It all boils down to the problem to identify the client who entered the correct
credentials.

If you propose to use the IP, take a look at what a proxy server does, and what NAT does.

If you propose (sender IP:sender port), you would have a unique endpoint. But this is
lost as soon as the client opens a new TCP connection, what happens quite often.

/Str.
[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:11:57 GMT 2024

Total time taken to generate the page: 0.09191 seconds