Solved

Urgent Cookie Problem

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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