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
Switch to threaded view of this topic Create a new topic Submit Reply
Pass varible with out URL and SESSION [message #179944] Sat, 22 December 2012 09:18 Go to next message
Biju S is currently offline  Biju S
Messages: 3
Registered: December 2012
Karma: 0
Junior Member
Pass varible to One page to other page ....
With out Url varible and session ....
any way
Re: Pass varible with out URL and SESSION [message #179945 is a reply to message #179944] Sat, 22 December 2012 09:24 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 22.12.2012 10:18, schrieb Biju S:
> Pass varible to One page to other page ....
> With out Url varible and session ....
> any way
>

RFC 1149, http://tools.ietf.org/html/rfc1149

/Str.
Re: Pass varible with out URL and SESSION [message #179946 is a reply to message #179945] Sat, 22 December 2012 10:05 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 22-12-2012 10:24, M. Strobel wrote:
> Am 22.12.2012 10:18, schrieb Biju S:
>> Pass varible to One page to other page ....
>> With out Url varible and session ....
>> any way
>>
>
> RFC 1149, http://tools.ietf.org/html/rfc1149
>
> /Str.
>

Is this the RFC which tells how to write proper English?

;)
Re: Pass varible with out URL and SESSION [message #179947 is a reply to message #179946] Sat, 22 December 2012 10:37 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 22.12.2012 11:05, schrieb Luuk:
> On 22-12-2012 10:24, M. Strobel wrote:
>> Am 22.12.2012 10:18, schrieb Biju S:
>>> Pass varible to One page to other page ....
>>> With out Url varible and session ....
>>> any way
>>>
>>
>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>
>> /Str.
>>
>
> Is this the RFC which tells how to write proper English?
>
> ;)

no write sentence with in complete

/Str.
Re: Pass varible with out URL and SESSION [message #179948 is a reply to message #179947] Sat, 22 December 2012 10:40 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 22.12.2012 11:37, schrieb M. Strobel:
> Am 22.12.2012 11:05, schrieb Luuk:
>> On 22-12-2012 10:24, M. Strobel wrote:
>>> Am 22.12.2012 10:18, schrieb Biju S:
>>>> Pass varible to One page to other page ....
>>>> With out Url varible and session ....
>>>> any way
>>>>
>>>
>>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>
>>> /Str.
>>>
>>
>> Is this the RFC which tells how to write proper English?
>>
>> ;)
>
> no write sentence with in complete

I can improve on that:

write with out varible
no with in complete

Happy Christmas.

/Str.
Re: Pass varible with out URL and SESSION [message #179949 is a reply to message #179948] Sat, 22 December 2012 12:29 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 22/12/12 10:40, M. Strobel wrote:
> Am 22.12.2012 11:37, schrieb M. Strobel:
>> Am 22.12.2012 11:05, schrieb Luuk:
>>> On 22-12-2012 10:24, M. Strobel wrote:
>>>> Am 22.12.2012 10:18, schrieb Biju S:
>>>> > Pass varible to One page to other page ....
>>>> > With out Url varible and session ....
>>>> > any way
>>>> >
>>>>
>>>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>>
>>>> /Str.
>>>>
>>>
>>> Is this the RFC which tells how to write proper English?
>>>
>>> ;)
>>
>> no write sentence with in complete
>
> I can improve on that:
>
> write with out varible
> no with in complete
>
> Happy Christmas.
>
Silk weave stocking is being connected to the rug terminal

(connect the braided sheath to the earth terminal)
> /Str.
>


--
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.
Re: Pass varible with out URL and SESSION [message #179950 is a reply to message #179944] Sat, 22 December 2012 13:15 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:

> Pass varible to One page to other page ....
> With out Url varible and session ....
> any way

Put it in a cookie that gets saved on the client. Use javascript to
manipulate the cookie to store / retrieve the value. Ask in a javascript
group or forum for more details. Won't work if the client routinely
disables javascript from untrusted servers.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
Re: Pass varible with out URL and SESSION [message #179951 is a reply to message #179944] Sat, 22 December 2012 13:25 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/22/2012 4:18 AM, Biju S wrote:
> Pass varible to One page to other page ....
> With out Url varible and session ....
> any way
>

Why don't you want to use the $_SESSION array? That's what it's there for.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179952 is a reply to message #179950] Sat, 22 December 2012 13:26 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 12/22/2012 5:15 AM, Denis McMahon wrote:
> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>
>> Pass varible to One page to other page ....
>> With out Url varible and session ....
>> any way
>
> Put it in a cookie that gets saved on the client. Use javascript to
> manipulate the cookie to store / retrieve the value. Ask in a javascript
> group or forum for more details. Won't work if the client routinely
> disables javascript from untrusted servers.
>

Or POST I suppose

Scotty
Re: Pass varible with out URL and SESSION [message #179953 is a reply to message #179950] Sat, 22 December 2012 14:32 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/22/2012 8:15 AM, Denis McMahon wrote:
> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>
>> Pass varible to One page to other page ....
>> With out Url varible and session ....
>> any way
>
> Put it in a cookie that gets saved on the client. Use javascript to
> manipulate the cookie to store / retrieve the value. Ask in a javascript
> group or forum for more details. Won't work if the client routinely
> disables javascript from untrusted servers.
>

You don't need javascript to use cookies. PHP does it quite well by itself.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179954 is a reply to message #179952] Sat, 22 December 2012 14:43 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 22/12/12 13:26, Scott Johnson wrote:
> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>
>>> Pass varible to One page to other page ....
>>> With out Url varible and session ....
>>> any way
>>
>> Put it in a cookie that gets saved on the client. Use javascript to
>> manipulate the cookie to store / retrieve the value. Ask in a javascript
>> group or forum for more details. Won't work if the client routinely
>> disables javascript from untrusted servers.
>>
>
> Or POST I suppose
>
well, POST is all there is, since session stuff IS cookies, just in a
pretty dress.


> Scotty


--
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.
Re: Pass varible with out URL and SESSION [message #179955 is a reply to message #179944] Sat, 22 December 2012 16:35 Go to previous messageGo to next message
Gregor Kofler is currently offline  Gregor Kofler
Messages: 69
Registered: September 2010
Karma: 0
Member
Am 2012-12-22 10:18, Biju S meinte:
> Pass varible to One page to other page ....
> With out Url varible and session ....
> any way

Url means GET, session means cookie. You could use POST.

Gregor
Re: Pass varible with out URL and SESSION [message #179956 is a reply to message #179949] Sat, 22 December 2012 17:21 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:kb4939$tut$2(at)news(dot)albasani(dot)net,
The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
> On 22/12/12 10:40, M. Strobel wrote:
>> Am 22.12.2012 11:37, schrieb M. Strobel:
>>> Am 22.12.2012 11:05, schrieb Luuk:
>>>> On 22-12-2012 10:24, M. Strobel wrote:
>>>> > Am 22.12.2012 10:18, schrieb Biju S:
>>>> >> Pass varible to One page to other page ....
>>>> >> With out Url varible and session ....
>>>> >> any way
>>>> >>
>>>> >
>>>> > RFC 1149, http://tools.ietf.org/html/rfc1149
>>>> >
>>>> > /Str.
>>>> >
>>>>
>>>> Is this the RFC which tells how to write proper
>>>> English? ;)
>>>
>>> no write sentence with in complete
>>
>> I can improve on that:
>>
>> write with out varible
>> no with in complete
>>
>> Happy Christmas.
>>
> Silk weave stocking is being connected to the rug terminal
>
> (connect the braided sheath to the earth terminal)
>> /Str.

Don't you ever have anything to say?
Re: Pass varible with out URL and SESSION [message #179957 is a reply to message #179954] Sat, 22 December 2012 17:23 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
> On 22/12/12 13:26, Scott Johnson wrote:
>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>
>>>> Pass varible to One page to other page ....
>>>> With out Url varible and session ....
>>>> any way
>>>
>>> Put it in a cookie that gets saved on the client. Use
>>> javascript to manipulate the cookie to store / retrieve
>>> the value. Ask in a javascript group or forum for more
>>> details. Won't work if the client routinely disables
>>> javascript from untrusted servers.
>>
>> Or POST I suppose
>>
> well, POST is all there is, since session stuff IS
> cookies, just in a pretty dress.
>
>
>> Scotty

Not quite: Sessions do not put anything on the client side machine. It's all
kept on the server if it's wrtten properly. They definitely are NOT cookies;
please have a look at the manual.
Re: Pass varible with out URL and SESSION [message #179958 is a reply to message #179944] Sat, 22 December 2012 17:51 Go to previous messageGo to next message
email.nandkishore is currently offline  email.nandkishore
Messages: 1
Registered: December 2012
Karma: 0
Junior Member
On Saturday, December 22, 2012 2:48:53 PM UTC+5:30, Biju S wrote:
> Pass varible to One page to other page ....
>
> With out Url varible and session ....
>
> any way
Re: Pass varible with out URL and SESSION [message #179959 is a reply to message #179953] Sat, 22 December 2012 18:09 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Sat, 22 Dec 2012 09:32:16 -0500, Jerry Stuckle wrote:

> On 12/22/2012 8:15 AM, Denis McMahon wrote:
>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>
>>> Pass varible to One page to other page ....
>>> With out Url varible and session ....
>>> any way
>>
>> Put it in a cookie that gets saved on the client. Use javascript to
>> manipulate the cookie to store / retrieve the value. Ask in a
>> javascript group or forum for more details. Won't work if the client
>> routinely disables javascript from untrusted servers.
>>
>>
> You don't need javascript to use cookies. PHP does it quite well by
> itself.

Guess it depends where he wants the variable.

I was assuming he wanted the variable in a script on the client, and that
was why he was trying to pass it from page to page without using server
side code. I may have been over-thinking things. :)

i.e I'm reading his request as looking for a method of maintaining some
sort of state information on the client side when using e.g. free hosting
that doesn't allow for any sort of server side scripting.

Perhaps the OP could give us a little more detail about what he actually
wants to do.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
Re: Pass varible with out URL and SESSION [message #179960 is a reply to message #179959] Sat, 22 December 2012 18:45 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/22/2012 1:09 PM, Denis McMahon wrote:
> On Sat, 22 Dec 2012 09:32:16 -0500, Jerry Stuckle wrote:
>
>> On 12/22/2012 8:15 AM, Denis McMahon wrote:
>>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>
>>>> Pass varible to One page to other page ....
>>>> With out Url varible and session ....
>>>> any way
>>>
>>> Put it in a cookie that gets saved on the client. Use javascript to
>>> manipulate the cookie to store / retrieve the value. Ask in a
>>> javascript group or forum for more details. Won't work if the client
>>> routinely disables javascript from untrusted servers.
>>>
>>>
>> You don't need javascript to use cookies. PHP does it quite well by
>> itself.
>
> Guess it depends where he wants the variable.
>
> I was assuming he wanted the variable in a script on the client, and that
> was why he was trying to pass it from page to page without using server
> side code. I may have been over-thinking things. :)
>
> i.e I'm reading his request as looking for a method of maintaining some
> sort of state information on the client side when using e.g. free hosting
> that doesn't allow for any sort of server side scripting.
>
> Perhaps the OP could give us a little more detail about what he actually
> wants to do.
>

Even if he uses javascript, he needs to pass the value back either in
the cookie, the URL or a POST value - any of which can be done without
javascript.

I agree we need more detail about what he's trying to do (and what he
has against using the $_SESSION array).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179962 is a reply to message #179957] Sat, 22 December 2012 20:55 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 22.12.2012 18:23, schrieb Twayne:
> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>> On 22/12/12 13:26, Scott Johnson wrote:
>>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>>
>>>> > Pass varible to One page to other page ....
>>>> > With out Url varible and session ....
>>>> > any way
>>>>
>>>> Put it in a cookie that gets saved on the client. Use
>>>> javascript to manipulate the cookie to store / retrieve
>>>> the value. Ask in a javascript group or forum for more
>>>> details. Won't work if the client routinely disables
>>>> javascript from untrusted servers.
>>>
>>> Or POST I suppose
>>>
>> well, POST is all there is, since session stuff IS
>> cookies, just in a pretty dress.
>>
>>
>>> Scotty
>
> Not quite: Sessions do not put anything on the client side machine. It's all
> kept on the server if it's wrtten properly. They definitely are NOT cookies;
> please have a look at the manual.
>

And how, do you think, the server can identify the client?

/Str.
Re: Pass varible with out URL and SESSION [message #179963 is a reply to message #179956] Sat, 22 December 2012 22:55 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 22/12/12 17:21, Twayne wrote:
> In news:kb4939$tut$2(at)news(dot)albasani(dot)net,
> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>> On 22/12/12 10:40, M. Strobel wrote:
>>> Am 22.12.2012 11:37, schrieb M. Strobel:
>>>> Am 22.12.2012 11:05, schrieb Luuk:
>>>> > On 22-12-2012 10:24, M. Strobel wrote:
>>>> >> Am 22.12.2012 10:18, schrieb Biju S:
>>>> >>> Pass varible to One page to other page ....
>>>> >>> With out Url varible and session ....
>>>> >>> any way
>>>> >>>
>>>> >>
>>>> >> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>> >>
>>>> >> /Str.
>>>> >>
>>>> >
>>>> > Is this the RFC which tells how to write proper
>>>> > English? ;)
>>>>
>>>> no write sentence with in complete
>>>
>>> I can improve on that:
>>>
>>> write with out varible
>>> no with in complete
>>>
>>> Happy Christmas.
>>>
>> Silk weave stocking is being connected to the rug terminal
>>
>> (connect the braided sheath to the earth terminal)
>>> /Str.
>
> Don't you ever have anything to say?
>
>
Not that you are capable of understanding, no.


--
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.
Re: Pass varible with out URL and SESSION [message #179964 is a reply to message #179962] Sat, 22 December 2012 22:56 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 22/12/12 20:55, M. Strobel wrote:
> Am 22.12.2012 18:23, schrieb Twayne:
>> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>> On 22/12/12 13:26, Scott Johnson wrote:
>>>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> > On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>> >
>>>> >> Pass varible to One page to other page ....
>>>> >> With out Url varible and session ....
>>>> >> any way
>>>> >
>>>> > Put it in a cookie that gets saved on the client. Use
>>>> > javascript to manipulate the cookie to store / retrieve
>>>> > the value. Ask in a javascript group or forum for more
>>>> > details. Won't work if the client routinely disables
>>>> > javascript from untrusted servers.
>>>>
>>>> Or POST I suppose
>>>>
>>> well, POST is all there is, since session stuff IS
>>> cookies, just in a pretty dress.
>>>
>>>
>>>> Scotty
>>
>> Not quite: Sessions do not put anything on the client side machine. It's all
>> kept on the server if it's wrtten properly. They definitely are NOT cookies;
>> please have a look at the manual.
>>
>
> And how, do you think, the server can identify the client?
>

Twayne doesn't know a lot. I think he's one of stuckles by blows...
he doesnt do thinking..

> /Str.
>


--
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.
Re: Pass varible with out URL and SESSION [message #179965 is a reply to message #179963] Sat, 22 December 2012 23:03 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/22/2012 5:55 PM, The Natural Philosopher wrote:
> On 22/12/12 17:21, Twayne wrote:
>> In news:kb4939$tut$2(at)news(dot)albasani(dot)net,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>> On 22/12/12 10:40, M. Strobel wrote:
>>>> Am 22.12.2012 11:37, schrieb M. Strobel:
>>>> > Am 22.12.2012 11:05, schrieb Luuk:
>>>> >> On 22-12-2012 10:24, M. Strobel wrote:
>>>> >>> Am 22.12.2012 10:18, schrieb Biju S:
>>>> >>>> Pass varible to One page to other page ....
>>>> >>>> With out Url varible and session ....
>>>> >>>> any way
>>>> >>>>
>>>> >>>
>>>> >>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>> >>>
>>>> >>> /Str.
>>>> >>>
>>>> >>
>>>> >> Is this the RFC which tells how to write proper
>>>> >> English? ;)
>>>> >
>>>> > no write sentence with in complete
>>>>
>>>> I can improve on that:
>>>>
>>>> write with out varible
>>>> no with in complete
>>>>
>>>> Happy Christmas.
>>>>
>>> Silk weave stocking is being connected to the rug terminal
>>>
>>> (connect the braided sheath to the earth terminal)
>>>> /Str.
>>
>> Don't you ever have anything to say?
>>
>>
> Not that you are capable of understanding, no.
>
>

And nothing that any sane person can understand. No wonder you lost
your job as a ditch digger and can't find another one.

Of course, you try to hide behind a 'nym because you're afraid to let
the real world know the real name of someone as stoopid as you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179966 is a reply to message #179957] Sat, 22 December 2012 23:43 Go to previous messageGo to next message
Gregor Kofler is currently offline  Gregor Kofler
Messages: 69
Registered: September 2010
Karma: 0
Member
Am 2012-12-22 18:23, Twayne meinte:
> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>> On 22/12/12 13:26, Scott Johnson wrote:
>>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>>
>>>> > Pass varible to One page to other page ....
>>>> > With out Url varible and session ....
>>>> > any way
>>>>
>>>> Put it in a cookie that gets saved on the client. Use
>>>> javascript to manipulate the cookie to store / retrieve
>>>> the value. Ask in a javascript group or forum for more
>>>> details. Won't work if the client routinely disables
>>>> javascript from untrusted servers.
>>>
>>> Or POST I suppose
>>>
>> well, POST is all there is, since session stuff IS
>> cookies, just in a pretty dress.
>>
>>
>>> Scotty
>
> Not quite: Sessions do not put anything on the client side machine. It's all
> kept on the server if it's wrtten properly. They definitely are NOT cookies;
> please have a look at the manual.

They *frequently* do. Unless one doesn't want to transfer the session id
as URL parameter, it is stored in a session cookie which contains the
session id, which the server then can use to access the server-side
stored actual data.

Since you advise others to read the manual - have a look at:

http://php.net/manual/en/session.idpassing.php

" There are two methods to propagate a session id:

Cookies
URL parameter
"

Gregor
Re: Pass varible with out URL and SESSION [message #179967 is a reply to message #179966] Sun, 23 December 2012 00:09 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 22/12/12 23:43, Gregor Kofler wrote:
> Am 2012-12-22 18:23, Twayne meinte:
>> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>> On 22/12/12 13:26, Scott Johnson wrote:
>>>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> > On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>> >
>>>> >> Pass varible to One page to other page ....
>>>> >> With out Url varible and session ....
>>>> >> any way
>>>> >
>>>> > Put it in a cookie that gets saved on the client. Use
>>>> > javascript to manipulate the cookie to store / retrieve
>>>> > the value. Ask in a javascript group or forum for more
>>>> > details. Won't work if the client routinely disables
>>>> > javascript from untrusted servers.
>>>>
>>>> Or POST I suppose
>>>>
>>> well, POST is all there is, since session stuff IS
>>> cookies, just in a pretty dress.
>>>
>>>
>>>> Scotty
>>
>> Not quite: Sessions do not put anything on the client side machine.
>> It's all
>> kept on the server if it's wrtten properly. They definitely are NOT
>> cookies;
>> please have a look at the manual.
>
> They *frequently* do. Unless one doesn't want to transfer the session id
> as URL parameter, it is stored in a session cookie which contains the
> session id, which the server then can use to access the server-side
> stored actual data.
>
> Since you advise others to read the manual - have a look at:
>
> http://php.net/manual/en/session.idpassing.php
>
> " There are two methods to propagate a session id:
>
> Cookies
> URL parameter
> "
>
> Gregor
>
>
well exactly. There are only three ways to keep track of a browser state
between pages: cookie, GET or POST.

sessions are just a noob wrapper.




--
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.
Re: Pass varible with out URL and SESSION [message #179968 is a reply to message #179965] Sun, 23 December 2012 07:56 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 23-12-2012 00:03, Jerry Stuckle wrote:
> And nothing that any sane person can understand. No wonder you lost
> your job as a ditch digger and can't find another one.
>
> Of course, you try to hide behind a 'nym because you're afraid to let
> the real world know the real name of someone as stoopid as you.
>

And suddenly this thread was not a nice one anymore.....
And why?
Just because some one had to say somehting really unfriendly

Which is off-topic (even if the thread was off-topic)

We should have a moderator here, who educates people how to behave.
Re: Pass varible with out URL and SESSION [message #179969 is a reply to message #179968] Sun, 23 December 2012 14:25 Go to previous messageGo to next message
houghi is currently offline  houghi
Messages: 45
Registered: September 2011
Karma: 0
Member
Luuk wrote:
> We should have a moderator here, who educates people how to behave.

What I like about Usenet is that _I_ can decide what to moderate with
killfiles. I do not have to discuss with a moderator that he should or
should not moderate something. I have my own standards and so will
everybody else.

Some people might be offended if I say 'fuck'. Some might be offended if
I say 'god'. People get offended for different reasons and luckily with
Usenet _you_ have the ability to do something about it by killfiling.

Depending on your software, you can killfile on sender, subject,
reference or anything else in the header. There are even ways to filter
on content with certain programs.

So in a way there already IS a moderator. That moderator is you. ;-)

houghi
--
This is written under the inluence of the following:
> Artist : The Sex Pistols
> Song : God Save The Queen
> Album : Never Mind the Bollocks Here's the Sex Pistols
Re: Pass varible with out URL and SESSION [message #179970 is a reply to message #179968] Sun, 23 December 2012 16:21 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/23/2012 2:56 AM, Luuk wrote:
> On 23-12-2012 00:03, Jerry Stuckle wrote:
>> And nothing that any sane person can understand. No wonder you lost
>> your job as a ditch digger and can't find another one.
>>
>> Of course, you try to hide behind a 'nym because you're afraid to let
>> the real world know the real name of someone as stoopid as you.
>>
>
> And suddenly this thread was not a nice one anymore.....
> And why?
> Just because some one had to say somehting really unfriendly
>
> Which is off-topic (even if the thread was off-topic)
>
> We should have a moderator here, who educates people how to behave.

That's TNP for you. He doesn't know anything, so the only way he can
satisfy his ego is to try to make everyone else look dumber than he.

It doesn't work, but he's not smart enough to see that.

As for "nice" - the truth isn't always "nice".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179971 is a reply to message #179964] Sun, 23 December 2012 17:02 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 22.12.2012 23:56, schrieb The Natural Philosopher:
> On 22/12/12 20:55, M. Strobel wrote:
>> Am 22.12.2012 18:23, schrieb Twayne:
>>> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
>>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>>> On 22/12/12 13:26, Scott Johnson wrote:
>>>> > On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> >> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>> >>
>>>> >>> Pass varible to One page to other page ....
>>>> >>> With out Url varible and session ....
>>>> >>> any way
>>>> >>
>>>> >> Put it in a cookie that gets saved on the client. Use
>>>> >> javascript to manipulate the cookie to store / retrieve
>>>> >> the value. Ask in a javascript group or forum for more
>>>> >> details. Won't work if the client routinely disables
>>>> >> javascript from untrusted servers.
>>>> >
>>>> > Or POST I suppose
>>>> >
>>>> well, POST is all there is, since session stuff IS
>>>> cookies, just in a pretty dress.
>>>>
>>>>
>>>> > Scotty
>>>
>>> Not quite: Sessions do not put anything on the client side machine. It's all
>>> kept on the server if it's wrtten properly. They definitely are NOT cookies;
>>> please have a look at the manual.
>>>
>>
>> And how, do you think, the server can identify the client?
>>
>
> Twayne doesn't know a lot. I think he's one of stuckles by blows...
> he doesnt do thinking..
>

I would like to hear his explanation. This is called education science.

/Str.
Re: Pass varible with out URL and SESSION [message #179972 is a reply to message #179963] Sun, 23 December 2012 17:27 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:kb5do8$730$1(at)news(dot)albasani(dot)net,
The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
> On 22/12/12 17:21, Twayne wrote:
>> In news:kb4939$tut$2(at)news(dot)albasani(dot)net,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>> On 22/12/12 10:40, M. Strobel wrote:
>>>> Am 22.12.2012 11:37, schrieb M. Strobel:
>>>> > Am 22.12.2012 11:05, schrieb Luuk:
>>>> >> On 22-12-2012 10:24, M. Strobel wrote:
>>>> >>> Am 22.12.2012 10:18, schrieb Biju S:
>>>> >>>> Pass varible to One page to other page ....
>>>> >>>> With out Url varible and session ....
>>>> >>>> any way
>>>> >>>>
>>>> >>>
>>>> >>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>> >>>
>>>> >>> /Str.
>>>> >>>
>>>> >>
>>>> >> Is this the RFC which tells how to write proper
>>>> >> English? ;)
>>>> >
>>>> > no write sentence with in complete
>>>>
>>>> I can improve on that:
>>>>
>>>> write with out varible
>>>> no with in complete
>>>>
>>>> Happy Christmas.
>>>>
>>> Silk weave stocking is being connected to the rug
>>> terminal (connect the braided sheath to the earth terminal)
>>>> /Str.
>>
>> Don't you ever have anything to say?
>>
>>
> Not that you are capable of understanding, no.


Or anyone else for that matter; none of your posts have anything to say
here.
Re: Pass varible with out URL and SESSION [message #179973 is a reply to message #179966] Sun, 23 December 2012 17:37 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:kb5gi4$4fe$1(at)dont-email(dot)me,
Gregor Kofler <usenet(at)gregorkofler(dot)com> typed:
> Am 2012-12-22 18:23, Twayne meinte:
>> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>> On 22/12/12 13:26, Scott Johnson wrote:
>>>> On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> > On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>> >
>>>> >> Pass varible to One page to other page ....
>>>> >> With out Url varible and session ....
>>>> >> any way
>>>> >
>>>> > Put it in a cookie that gets saved on the client. Use
>>>> > javascript to manipulate the cookie to store /
>>>> > retrieve the value. Ask in a javascript group or
>>>> > forum for more details. Won't work if the client
>>>> > routinely disables javascript from untrusted servers.
>>>>
>>>> Or POST I suppose
>>>>
>>> well, POST is all there is, since session stuff IS
>>> cookies, just in a pretty dress.
>>>
>>>
>>>> Scotty
>>
>> Not quite: Sessions do not put anything on the client
>> side machine. It's all kept on the server if it's wrtten
>> properly. They definitely are NOT cookies; please have a
>> look at the manual.
>
> They *frequently* do. Unless one doesn't want to transfer
> the session id as URL parameter, it is stored in a
> session cookie which contains the session id, which the
> server then can use to access the server-side stored
> actual data.
> Since you advise others to read the manual - have a look
> at:
> http://php.net/manual/en/session.idpassing.php
>
> " There are two methods to propagate a session id:
>
> Cookies
> URL parameter
> "
>
> Gregor


Hmm, that's interesting and I stand corrected; especially from that
respected source. I'll have to check that out more closely. Somehow I
though Sessions were kept from the client side, thus my prevous answer.

Thanks, and

HTH,

Twayne`
Re: Pass varible with out URL and SESSION [message #179974 is a reply to message #179972] Sun, 23 December 2012 17:45 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 23.12.2012 18:27, schrieb Twayne:
> In news:kb5do8$730$1(at)news(dot)albasani(dot)net,
> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>> On 22/12/12 17:21, Twayne wrote:
>>> In news:kb4939$tut$2(at)news(dot)albasani(dot)net,
>>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>>> On 22/12/12 10:40, M. Strobel wrote:
>>>> > Am 22.12.2012 11:37, schrieb M. Strobel:
>>>> >> Am 22.12.2012 11:05, schrieb Luuk:
>>>> >>> On 22-12-2012 10:24, M. Strobel wrote:
>>>> >>>> Am 22.12.2012 10:18, schrieb Biju S:
>>>> >>>>> Pass varible to One page to other page ....
>>>> >>>>> With out Url varible and session ....
>>>> >>>>> any way
>>>> >>>>>
>>>> >>>>
>>>> >>>> RFC 1149, http://tools.ietf.org/html/rfc1149
>>>> >>>>
>>>> >>>> /Str.
>>>> >>>>
>>>> >>>
>>>> >>> Is this the RFC which tells how to write proper
>>>> >>> English? ;)
>>>> >>
>>>> >> no write sentence with in complete
>>>> >
>>>> > I can improve on that:
>>>> >
>>>> > write with out varible
>>>> > no with in complete
>>>> >
>>>> > Happy Christmas.
>>>> >
>>>> Silk weave stocking is being connected to the rug
>>>> terminal (connect the braided sheath to the earth terminal)
>>>> > /Str.
>>>
>>> Don't you ever have anything to say?
>>>
>>>
>> Not that you are capable of understanding, no.
>
>
> Or anyone else for that matter; none of your posts have anything to say
> here.
>
>

But you do? At least you learned a little writing.

/Str.
Re: Pass varible with out URL and SESSION [message #179975 is a reply to message #179973] Sun, 23 December 2012 18:36 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/23/2012 12:37 PM, Twayne wrote:
> In news:kb5gi4$4fe$1(at)dont-email(dot)me,
> Gregor Kofler <usenet(at)gregorkofler(dot)com> typed:
>> Am 2012-12-22 18:23, Twayne meinte:
>>> In news:kb4guc$dng$2(at)news(dot)albasani(dot)net,
>>> The Natural Philosopher <tnp(at)invalid(dot)invalid> typed:
>>>> On 22/12/12 13:26, Scott Johnson wrote:
>>>> > On 12/22/2012 5:15 AM, Denis McMahon wrote:
>>>> >> On Sat, 22 Dec 2012 01:18:53 -0800, Biju S wrote:
>>>> >>
>>>> >>> Pass varible to One page to other page ....
>>>> >>> With out Url varible and session ....
>>>> >>> any way
>>>> >>
>>>> >> Put it in a cookie that gets saved on the client. Use
>>>> >> javascript to manipulate the cookie to store /
>>>> >> retrieve the value. Ask in a javascript group or
>>>> >> forum for more details. Won't work if the client
>>>> >> routinely disables javascript from untrusted servers.
>>>> >
>>>> > Or POST I suppose
>>>> >
>>>> well, POST is all there is, since session stuff IS
>>>> cookies, just in a pretty dress.
>>>>
>>>>
>>>> > Scotty
>>>
>>> Not quite: Sessions do not put anything on the client
>>> side machine. It's all kept on the server if it's wrtten
>>> properly. They definitely are NOT cookies; please have a
>>> look at the manual.
>>
>> They *frequently* do. Unless one doesn't want to transfer
>> the session id as URL parameter, it is stored in a
>> session cookie which contains the session id, which the
>> server then can use to access the server-side stored
>> actual data.
>> Since you advise others to read the manual - have a look
>> at:
>> http://php.net/manual/en/session.idpassing.php
>>
>> " There are two methods to propagate a session id:
>>
>> Cookies
>> URL parameter
>> "
>>
>> Gregor
>
>
> Hmm, that's interesting and I stand corrected; especially from that
> respected source. I'll have to check that out more closely. Somehow I
> though Sessions were kept from the client side, thus my prevous answer.
>
> Thanks, and
>
> HTH,
>
> Twayne`
>
>

Session DATA is held on the server. But the session ID has to come from
the client.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179976 is a reply to message #179967] Mon, 24 December 2012 09:30 Go to previous messageGo to next message
Andy is currently offline  Andy
Messages: 8
Registered: March 2002
Karma: 0
Junior Member
> 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.

Andy
Re: Pass varible with out URL and SESSION [message #179977 is a reply to message #179976] Mon, 24 December 2012 13:30 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/24/2012 4:30 AM, Andy 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.
>
> Andy

Which still comes back in the GET or POST values, as applicable.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Pass varible with out URL and SESSION [message #179978 is a reply to message #179976] Mon, 24 December 2012 13:41 Go to previous messageGo to next message
adrian is currently offline  adrian
Messages: 27
Registered: December 2012
Karma: 0
Junior Member
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.


--
~ Adrian Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk
Re: Pass varible with out URL and SESSION [message #179979 is a reply to message #179978] Mon, 24 December 2012 14:23 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
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.

Still wondering why the OP does has these restrictions or is just
curious if it can be done or if he has flown the coop.
Re: Pass varible with out URL and SESSION [message #179980 is a reply to message #179979] Mon, 24 December 2012 15:43 Go to previous messageGo to next message
adrian is currently offline  adrian
Messages: 27
Registered: December 2012
Karma: 0
Junior Member
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.


--
~ Adrian Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk
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 next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
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.
Re: Pass varible with out URL and SESSION [message #179982 is a reply to message #179977] Mon, 24 December 2012 16:40 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Mon, 24 Dec 2012 08:30:45 -0500, Jerry Stuckle wrote:

> On 12/24/2012 4:30 AM, Andy 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.

> Which still comes back in the GET or POST values, as applicable.

I think Andy is suggesting a client side method that uses javascript to
store a variable in a higher level frame between page loads. This could
be used to pass data between the javascript code running in two pages on
a client without passing the data through the server.

It's a similar approach to using js to create a cookie on the client side
that can be read by js in another page on the client side, to pass data
between pages on the client side without relying on the server.

However, as we already agreed (I think), until we have more information
about what the OP actually wants to do, and specifically whether he's
trying to pass state information between pages on the client or on the
server, it's a bit pointless debating the ins and outs of the various
possible methods.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
Re: Pass varible with out URL and SESSION [message #179983 is a reply to message #179982] Mon, 24 December 2012 18:56 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/24/2012 11:40 AM, Denis McMahon wrote:
> On Mon, 24 Dec 2012 08:30:45 -0500, Jerry Stuckle wrote:
>
>> On 12/24/2012 4:30 AM, Andy 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.
>
>> Which still comes back in the GET or POST values, as applicable.
>
> I think Andy is suggesting a client side method that uses javascript to
> store a variable in a higher level frame between page loads. This could
> be used to pass data between the javascript code running in two pages on
> a client without passing the data through the server.
>
> It's a similar approach to using js to create a cookie on the client side
> that can be read by js in another page on the client side, to pass data
> between pages on the client side without relying on the server.
>
> However, as we already agreed (I think), until we have more information
> about what the OP actually wants to do, and specifically whether he's
> trying to pass state information between pages on the client or on the
> server, it's a bit pointless debating the ins and outs of the various
> possible methods.
>

But it's still passed back to the server via POST or GET. All he's
suggesting is a different way of storing it on the client (i.e. instead
of a hidden field in a form).


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
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: 0
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
Pages (2): [1  2    »]  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: simple dating site
Next Topic: Current PHP implementation
Goto Forum:
  

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

Current Time: Thu Nov 21 22:35:23 GMT 2024

Total time taken to generate the page: 0.03147 seconds