Re: [Radiant] How to use session in tags?

2008-08-26 Thread Casper Fabricius
I just store it in plain text. The pages that need the user to be logged in is of a special page type, checking the session. Also, the controllers in my custom extension checks for login. That way, there is no reason to encrypt the cookie data in any way, it is just a display thing, not for

Re: [Radiant] How to use session in tags?

2008-08-26 Thread Christopher Dwan
Hey Casper, Do you just store the name and association_name in the cookie in plain text or is there some facility that you use to encrypt the data..? -Chris On 26-Aug-08, at 10:06 AM, Casper Fabricius wrote: Hi Vincent, I've done with Javascript reading login information from a cookie l

Re: [Radiant] How to use session in tags?

2008-08-26 Thread Casper Fabricius
Hi Vincent, I've done with Javascript reading login information from a cookie like this: http://pastie.org/260306 Cheers, Casper (Cookie is a util object, btw, it's not built into javascript) On 26/08/2008, at 18:46, Christopher Dwan wrote: Hi Vincent, I ran into this just the other day

Re: [Radiant] How to use session in tags?

2008-08-26 Thread Christopher Dwan
Hi Vincent, I ran into this just the other day myself and I've done some digging. In theory you could override a method in SiteController and use it to pass the current user to @page after find_page() happens.. You would have to disable the cache in that case and make sure the page is r