Paul Smith wrote:

> I'm re-doing a website to use Cookies to maintain state for sessions.  I'm 
> only setting cookies in the browser.  I assume the coding below will delete 
> cookies in the visitor's browser when they close it.  Not interested at 
> this time in setting any cookies on the visitor's hard drive.  My 
> application.cfm includes the following:
> 
> <cfapplication
>       name="syp"
>       clientmanagement="Yes"
>       SessionManagement="yes"
>       setclientcookies="Yes"
>  >
> 
>    <CFCOOKIE NAME="CFID" VALUE="#CFID#"/>
>    <CFCOOKIE NAME="CFTOKEN" VALUE="#CFTOKEN#"/>
> 
> But when the home page is opened the following URL appears in the browser 
> window:
> 
> http://dev.smarteryellowpages.com/index.cfm?CFID=49911&CFTOKEN=63451286
> 
> How do I delete the display of CFID/CFTOKEN and their values in the URL?

You realise that you're doing something that CF does itself when you've
got session management on? CF stores those in cookies itself if it can,
otherwise it maintains the session using URL rewriting, which is what
you saw. However, if turns out that the browser accepts cookies, it
stops using URL rewriting.

Is there any particular reason why you're doing this? If it's that you
want the contents of the session itself in cookies (thought I can't
fathom why), then why not just use client variables?

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192043
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to