Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Cookies on Apache vs cookies on IIS

by the_slycer (Chaplain)
on Mar 15, 2002 at 19:31 UTC ( #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 it's as simple as "$cookie_value=$q->escapeHTML($cookie_value)"

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2020-05-29 20:44 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (171 votes). Check out past polls.