Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Stressed_Simon #1
Re: Session.Variables do not work suddenly
This is a bit confusing. Do you mean that your session variables only exist on
your site? This is normal behaviour?
If you mean they are not working have you turned them on in your cfapplication
tag?
More info would help to work this out!
Stressed_Simon Guest
-
Session variables no longer work
Hey everyone, bad news, my site is dying. The reason... session variables have stopped working. For reasons unkown to me, the session scope seems to... -
Session Variables do not work suddenly
Hi, I have a problem. When I define Session.Variables they only resists on the CFM-Site where I defined them. When I go further (maybe with a... -
#25870 [Opn->Bgs]: Session variables do NOT work as expected
ID: 25870 Updated by: sniper@php.net Reported By: memoimyself at yahoo dot com dot br -Status: Open +Status: ... -
#25870 [Bgs->Opn]: Session variables do NOT work as expected
ID: 25870 User updated by: memoimyself at yahoo dot com dot br -Summary: Session variables do NOT work as expected without... -
#25870 [Opn]: Session variables do NOT work as expected without session_register()
ID: 25870 User updated by: memoimyself at yahoo dot com dot br Reported By: memoimyself at yahoo dot com dot br Status: ... -
Leon74 #2
Re: Session.Variables do not work suddenly
I mean on the same site.
Yes, they are turned on in the CFAPPLICATION. The site works originally
without any problem. Than suddenly the sessions do not work anymore. I do not
change any CF or Server settings.
Desciption: I post variables from Site1 to Site2 (example: contact1.cfm to
contact2.cfm in the same directory).
On site2 I definde session.Variables (example: <cfset #session.variable# =
#form.variable#> (form.Variable exist))
Later on Site2 I give the variables with a <cfoutput> tag out... it works.
But on the next site (maybe contact3.cfm) the session.Variables do not resist
any more.
Leon74 Guest
-
Stressed_Simon #3
Re: Session.Variables do not work suddenly
They might be timing out what is the sessiontimeout set to in your cfapplication tag, and what is the maximum set in the CF Administrator?
Stressed_Simon Guest
-
Leon74 #4
Re: Session.Variables do not work suddenly
Hi,
in the CFAPPLICATION I do not set any timeout. In CFAdmin the
maximun-timeout is 1 hour and the default timeout is 5 min for
session.Variables. The time when the session.Variables have still worked I
have the same settings.
Leon74 Guest
-
Leon74 #5
Re: Session.Variables do not work suddenly
The sessions variables are working only in the site I define them...
Leon74 Guest
-
BKBK #6
Re: Session.Variables do not work suddenly
For a start, this is not optimal coding, and might cause problems,
even if form.Variable exists:
<cfset #session.variable# = #form.variable#>
Use, instead
<cflock scope="session" timeout="30" type="Exclusive">
<cfset session.variable = #form.variable#>
</cflock>
BKBK Guest
-
Leon74 #7
Re: Session.Variables do not work suddenly
I try to look the Variable, but nothing changed. It's very confused. It seem
like the session.Variables are lost when I go to another URL ( in the same
Web-directory..) That's not the meaning of session.Variables. I'm going
crazy... The deadline for the Web-Site is tomorrow and I brawl with unlogical
problems...
Leon74 Guest
-
BKBK #8
Re: Session.Variables do not work suddenly
> session.Variables are lost when I go to another URL
The web is stateless. It forgets your session variables from one page to the
next.
Your expression "in the same Web-directory" doesn't mean a thing
when you're dealing with sessions. Make sure you pass your session variables
to all your URLs, whether they're in the same directory or not. Try doing a
test
like this one, to see whether it solves the problem.
<a href="testpage.cfm?#session.URLToken#">To test page</a>
When you get things working, go back and tighten up, using ideas from
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17255[/url]
BKBK Guest
-
Leon74 #9
Re: Session.Variables do not work suddenly
Hi,
First test:
<a hef ="test.cfm?id=3>
on the Site test.cfm I wrote
<cfif isDefined("id">
<cfoutput>#id#</cfoutput>
</cfif>
... the output says: 3 ..... correct.
Second test:
<a hef ="test.cfm?session.id=3>
on the Site test.cfm I wrote
<cfif isDefined("session.id">
<cfoutput>#session.id#</cfoutput>
</cfif>
... the output says nothing... I can not post Session.Variables with a <a
href> .... But when I use <cflocation> it works...
Leon74 Guest
-
BKBK #10
Re: Session.Variables do not work suddenly
Use just this
<a href="testpage.cfm?#session.URLToken#">To test page</a>
Not 'id=3', not 'session.id=whatever', nada, niyet,non,nein,no!
Your should test with the query string, #session.URLToken#
BKBK Guest
-
Leon74 #11
Re: Session.Variables do not work suddenly
Hi BKBK,
it works... I put "?#session.URLToken#"" in the form.
In [url]www.cfml.de[/url] I describe the same problem. And after weeks I promise the
person who solve the problem to send a nice surprice. I will keep my
promise... Is there any way for you to give me your postal adresse to send you
a present.
Maybe you write a email to [email]info@leon-media.com[/email]. In that email you give me a
passwort. This passwort you write down here in the forum. So I can identifier
you as BKBK.
No fear, it is not a joke or something else. I am very glad about the
solution...:D:)
Leon74 Guest



Reply With Quote

