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 #179984 is a reply to message #179980] Mon, 24 December 2012 21:36 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
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.

--

//Aho
[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: Sat Nov 30 20:11:07 GMT 2024

Total time taken to generate the page: 0.04132 seconds