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 #179989 is a reply to message #179986] Tue, 25 December 2012 01:25 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 12/24/2012 6:25 PM, The Natural Philosopher wrote:
> 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.
>
>
>
>

It gives you SECURITY as the data is not sent to the client - only the
session id is. But then noobs don't know (or care) about security.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 22:52:02 GMT 2024

Total time taken to generate the page: 0.04658 seconds