Forums

PHP

This topic is locked

Cookie or Session Variable

Posted 12 Sep 2001 13:50:56
1
has voted
12 Sep 2001 13:50:56 Stephen Bateman posted:
Does anyone have some advice on which is better to store temporary user selections?

My server only has 512Mb of memory and I am worried it may crash if I do not do things the in the most efficient way.

If cookies can someone point me to a idiots guide on how to set then read them.

Thanks

Replies

Replied 13 Sep 2001 08:56:45
13 Sep 2001 08:56:45 Tim Green replied:
There are a number of ways to do this.
Cookies are probably the easiest way, and the easiest way to implement cookies is to download the PHP Cookie Suite from this site.

Try checking out the PHP Documentation for more information on Cookies. If you don't have the documentation already, visit www.php.net

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Edited by - rawveg on 09/13/2001 08:58:26
Replied 13 Sep 2001 12:50:30
13 Sep 2001 12:50:30 Stephen Bateman replied:
Thanks Tim.

My problem is that the "PHP Cookie Suite" does not work with PHakt.

But I will try the Docs as noted, lets hope they are written for idiots <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

PS. Any recommendations for where to find a cost effective PHP programmer to help me out ?

Replied 13 Sep 2001 15:18:35
13 Sep 2001 15:18:35 chief monkey replied:

Tim's PHP cookie suite does work with Phakt.
This extension will make it easier for you.
It depends on what exactly you wish to do, and what you mean by temporary. A session cookie will be destroyed when the browser window is closed.
A cookie is stored on the clients machine and can be set to expire when you wish (if at all)

Everybody has got to be somewhere
Replied 13 Sep 2001 15:33:43
13 Sep 2001 15:33:43 Stephen Bateman replied:
I know it should work but all I get when I try is:

"Server Behavior was not applied. Could not find a valid XML file that refers to the current server behavior and the current server model."

I am using version 1.0.1 of PHAkt.

If anyone would be good enough to let me have the code to set a cookie from a form and RS value I would really appreciate it.

Thanks

Replied 14 Sep 2001 08:44:40
14 Sep 2001 08:44:40 Tim Green replied:
I'll look into this error, though the cookie suite was written <b>specifically</b> for PHAkT, so I don't know what has happened here, as other people use this extension without problem.

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic