Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: session file umask

by samtregar (Abbot)
on Jan 12, 2009 at 20:55 UTC ( #735805=note: print w/replies, xml ) Need Help??


in reply to Re^2: session file umask
in thread session file umask

Yes, the path setting on the cookie matters - it tells the browser which part of the site the cookie applies to. Set it wrong and you won't get your cookie back!

I mainly use two tools for debugging cookie problem - first, Firefox with the Web Developer addon. This gives you a screen where you can see what cookies are set and all their parameters. Failing that I pull out the big gun - wireshark. It's a network-level protocol examiner and you can use it to see exactly what the client and server are actually saying to each other. The learning curve is steep but sometimes you really need to see what's actually on the wire to solve a problem.

-sam

Replies are listed 'Best First'.
Re^4: session file umask
by ksublondie (Friar) on Jan 12, 2009 at 22:14 UTC
    Forgive me for any stupid questions...

    Do I set the path to the file session location or my script location?

    LOVE the web developer plugin...it's soooooo valuable in getting my layout & css just right. Never thought to use it with the cookies. I'll play with that and the wireshark and see where that goes...

      Usually I just set it to / and forget about it, honestly. But if you want something more specific it would be the path part of the URL to your script.

      -sam

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2020-07-08 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?