Forums
This topic is locked
Session and Cookie
Replies
Replied 12 Mar 2002 18:35:20
12 Mar 2002 18:35:20 Joel Martinez replied:
well, the easiest way to use cookies and sesions variables, is to go to the data sources window, click the plus, and choose either a session or cookie value.
once you do that, you will have it available to your server behaviors and whatnot. As far as using them, if there's anything you want to store from page to page, just do something like this:<pre id=code><font face=courier size=2 id=code>Session("email" = Request("email"</font id=code></pre id=code>As you can see from that code, it's taking the value of a form post (email) and putting it into a session. now you can use this code to access that value from another page<pre id=code><font face=courier size=2 id=code><%=Session("email"%></font id=code></pre id=code>It goes pretty much the same with cookies.
Joel Martinez
MX inSite Magazine
The Complete Resource for Macromedia designers & developers
Sign up for your free electronic Preview Issue
www.mxinsite.com
once you do that, you will have it available to your server behaviors and whatnot. As far as using them, if there's anything you want to store from page to page, just do something like this:<pre id=code><font face=courier size=2 id=code>Session("email" = Request("email"</font id=code></pre id=code>As you can see from that code, it's taking the value of a form post (email) and putting it into a session. now you can use this code to access that value from another page<pre id=code><font face=courier size=2 id=code><%=Session("email"%></font id=code></pre id=code>It goes pretty much the same with cookies.
Joel Martinez
MX inSite Magazine
The Complete Resource for Macromedia designers & developers
Sign up for your free electronic Preview Issue
www.mxinsite.com
Replied 13 Mar 2002 03:39:29
13 Mar 2002 03:39:29 scre wdanger replied:
This thing used to be a horror for me until i read the "Omars tutorial", so here is the link:
www.udnewbie.com/
Just go through tutorial and ´creating new sessions wouldn't be any problem anymore.
www.udnewbie.com/
Just go through tutorial and ´creating new sessions wouldn't be any problem anymore.