Note that, if your application is to be hosted on Windows IIS (ever), redirecting and setting a cookie doesn't work. Bug in IIS. Consequently, we send a small page that uses javascript to set the cookie and then navigate (document.cookie and document.location.url)

Matt Grommes wrote:
The Mason Book example (www.masonbook.com Chapter 8) uses a redirect
after login to set the cookie. That's one way of doing it.

You can also set the cookie but not populate a value in it until after
login. I just switched to doing that using
MasonX::Request::WithApacheSession.



CH wrote:
hi!

whats the best way to make the cookie delivery not at startup (I have it now in the handler an so it is delivered immediately)
but after a action (e.g a login).
I think about a global variable I set after the login and check it in the handler
and make the cookie-bake if it is set.

Any better ideas? Is it a wise way to serve cookies only after login or is it regardless?

greetings
chris


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

--
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: [EMAIL PROTECTED]




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to