 Rank: Aficionado
Joined: 9/17/2007 Posts: 172 Location: London, UK.
|
Hello,
Can I set a cookie within Umbraco? I want people to go to a page with two links but when they choose a link, umbraco will go directly to the chosen link on subsequent visits without having to click the link.
I know there's a library entry to read a cookie value but what about setting a cookie that will persist (not session)? I can't see an equivalent function.
Thanks!
Richard
2 * 3 * 3 * 37 : The prime factorisation of The Beast.
|
 Rank: Aficionado
Joined: 7/19/2006 Posts: 155
|
There is a library method you can use setCookie(string key, string value) Sets a cookie for a month
CPalm, www.cpalm.dk
|
 Rank: Aficionado
Joined: 9/17/2007 Posts: 172 Location: London, UK.
|
Thanks for that. I didn't see that in the online API.
What if I want to set it for longer? Ideally, I'd want it to be indefinite.
Richard
2 * 3 * 3 * 37 : The prime factorisation of The Beast.
|