Here is a function I use to check the status of a cookie:
Function ckcookie
Lparameters lcCookie,lcUser
* Local loSession, loHeader, lcSessionId, lcBrowser
If Empty(lcCookie)
loSession=Create("wwsession")
loSession.nSessionTimeOut= _Screen.NTIMEOUT&& seconds - 10
minutes
If !loSession.isvalidsession(lcCookie)
loSession.orequest = Request
lcCookie=loSession.newsession()
Endif
Else
loSession=Create("wwsession")
loSession.nSessionTimeOut= _Screen.NTIMEOUT&& seconds - 10
minutes
If Empty(lcCookie)
lcCookie=Request.GetCookie("WWKIOSK")
loSession.nSessionTimeOut= _Screen.NTIMEOUT&&
seconds - 10 minutes
Endif
If !loSession.isvalidsession(lcCookie)
Response.redirect("/rightsexpired.htm")
Return
Endif
Endif
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Jerry Foote
Sent: Tuesday, May 17, 2011 4:31 PM
To: 'ProFox Email List'
Subject: RE: WEST-WIND WEB CONNECT QUESTION
John,
My son who is out of the country wrote the routine, It look as if it is
Version 5.0, the code in in the button click of a login form after I get the
username and password. What other code would you need to see to help me thru
this Jerry
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of John Harvey
Sent: Tuesday, May 17, 2011 3:18 PM
To: 'ProFox Email List'
Subject: RE: WEST-WIND WEB CONNECT QUESTION
It depends on the version of WWC you are using as to how you reference the
cookies.
John
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Jerry Foote
Sent: Tuesday, May 17, 2011 2:23 PM
To: 'ProFox Email List'
Subject: WEST-WIND WEB CONNECT QUESTION
Does anybody know about cookies with west-wind?
I'm trying to set a cookie on a client machine.
When I issue addCookie("USERID",TEMPID,"/","NEVER")
And then
lcid=Request.GetCookie("USERID")
lcid is equal to ""
Is there something I'm missing?
Thanks Jerry
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.