Solved

Urgent Cookie Problem

Posted on 2004-10-13
7
191 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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

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…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

21 Experts available now in Live!

Get 1:1 Help Now