Solved

Urgent Cookie Problem

Posted on 2004-10-13
7
182 Views
Last Modified: 2013-12-24
I seem to have a problem with my site.. If cookies are disabled my session variables dont set and i get a blank Page. But viewing the source shows coldfusion error that is session is undefined..

this is my application page
<cfapplication sessionmanagement="yes" name="ac" sessiontimeout="#CreateTimeSpan(0,1,0,0)#" clientmanagement="yes">

What can be the problem??

Thankyou
0
Comment
Question by:chizzy60
7 Comments
 

Author Comment

by:chizzy60
ID: 12305005
Also the page is in a framset...
But i dont think that can be the problem..
0
 
LVL 21

Accepted Solution

by:
pinaldave earned 25 total points
ID: 12305493
use #session.urltocken# use inthe link...
if the cookie is not enable then session will be saved...
you need to have them specify in url like as I mentioned above like
<a href="index.cfm?eid=12&#session.urltocken#">

it should work....
---Pinal
0
 
LVL 7

Assisted Solution

by:black0ps
black0ps earned 25 total points
ID: 12308904
I think it's actually #Client.URLToken#, not session. That is a way you can pass your client CFID and CFToken variables to maintain the session state. You may also want to consider entering the following line of code under your cfapplication tag (in case your browser is not setting the cookie because of no privacy policy) for testing purposes:

<!--- Include Compact Privacy Policy --->
<cfheader name="P3P" value='CP="NOI COR NID CUR ADM OUR STD"'>

This will tell Internet Explorer to that it is ok to allow cookies to be set.
0
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 25 total points
ID: 12309453
If you do not enable cookies you really are limiting what can be done with session variables.  COld fusion uses what are called "memory only" cookies to keep track of session variables.  If you disable these then you have to pass the CFID and CFTOKEN around in the URL and have the possibility of session hijacking occurring.
0

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Join & Write a Comment

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now