When you say that the user 'leaves site' are you suggesting that they come
back in a few minutes after visiting a couple of other sites or they come
back anywhere from a few minutes to a few days/weeks/months in the future?

If it is in the future, then you want to assign a cookie variable. You need
to include the EXPIRES attribute. It's been a while since I assigned one but
I think this should work (it will assign a cookie value which expires in 1
week):

<@ASSIGN NAME="c_username" VALUE="value of username (i.e. <@ARG username> or
<@COLUMN contact.username>)" SCOPE="COOKIE" EXPIRES=<@TOGMT TS=<@SECSTOTS
SECS='<@CALC EXPR="<@TSTOSECS TS=<@CURRENTTIMESTAMP>>+604800">'>>

Hope this helps,

Steve Smith

Oakbridge Information Solutions
Office: (519) 624-4388
GTA:    (416) 606-3885
Fax:    (519) 624-3353
Cell:   (416) 606-3885
Email:  [EMAIL PROTECTED]
Web:    http://www.oakbridge.ca


> -----Original Message-----
> From: Tami Corn [mailto:[EMAIL PROTECTED]
> Sent: March 17, 2003 5:58 PM
> To: [EMAIL PROTECTED]
> Subject: Witango-Talk: cookie example
>
>
> Hello-
>
> I'm learning as I go so this may seem a little elementary to some.
>
> I have a login model setup.  I'm trying to figure out the best way to
> remember login information (my three fields:
> username/password/expirationdate) as a person passes from page 1 to page
> 2, leave site, come back later to page 1 or 2.
>
> Any one have suggestions or examples they would share of the best way to
> do this?
>
> Thanks.
>
> Tami Corn
> Harris Enterprises
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to