Solved

Urgent Cookie Problem

Posted on 2004-10-13
7
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

617 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