Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Cookies on Apache vs cookies on IIS

by the_slycer (Chaplain)
on Mar 15, 2002 at 19:31 UTC ( [id://152064]=note: print w/replies, xml ) Need Help??


in reply to Cookies on Apache vs cookies on IIS

Hmm.. why can't I edit my post??

Anyways, I noticed after I hit submit, that I accidentally type in the name of the cookie in the my $values = $p->cookie('cookie') line incorrectly.

Let me assure you that this is not the case in the live version of the code.

Replies are listed 'Best First'.
Re: Re: Cookies on Apache vs cookies on IIS
by Hero Zzyzzx (Curate) on Mar 15, 2002 at 20:45 UTC

    Those are some UGLY cookies you're making there. Why not just create a session id that you store in a table with all the stuff in %ui ? Then you just set the session id as the cookie, and when the user comes back you do a simple DBI query to get who they are from your "session" table.

    I suspect that IIS is just balking at setting a cookie with all the wierdo stuff that you're putting into the value, and there is probably a maximum cookie value length, too.

    Have you checked the error logs to see if IIS is saying anything when you try to set this cookie?

    You may get some love from IIS if you HTML escape your value, if you use CGI.pm it's as simple as "$cookie_value=$q->escapeHTML($cookie_value)"

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found