Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

session

New Here ,
Apr 09, 2008 Apr 09, 2008
hi.
the url is http://www.imedmart.com/index.cfm?affiliate=KTE0VyVbKTcsUFBYSAo|
I want to put the affiliate=KTE0VyVbKTcsUFBYSAo|
into session.how should i do it?
thanks
532
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 09, 2008 Apr 09, 2008
<cfset session.affiliate = url.affiliate> does not work?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2008 Apr 09, 2008
I did that but I got this error:
"Element AFFILIATE is undefined in SESSION. "
did I miss something? Ive put the <CFSET session.affiliate = url.affiliate> in my sessionStart.cfm file.
should I put it seperatly in my homepage?if yes then how should I check the page to run with or without checking this session.
sorry Im new and I really need help.
thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2008 Apr 10, 2008
LATEST
quote:

Originally posted by: masoud_amen
I did that but I got this error:
"Element AFFILIATE is undefined in SESSION. "
did I miss something? Ive put the <CFSET session.affiliate = url.affiliate> in my sessionStart.cfm file.
should I put it seperatly in my homepage?if yes then how should I check the page to run with or without checking this session.
sorry Im new and I really need help.
thanks

You have to put it on a page that has a url.affiliate variable available to it.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 09, 2008 Apr 09, 2008
do you have session variables enabled in cf administrator?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2008 Apr 09, 2008
yes I did.and the other session variables are working corectly.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 09, 2008 Apr 09, 2008
can you post the code that sets the var and the code that tries to use
it and throws the error?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 10, 2008 Apr 10, 2008
thank u so much for evrything.I found my mistake.It was in a wrong page!!!By the way are u persian?!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 09, 2008 Apr 09, 2008
if you do have session vars enabled in cf admin, can you post your code
that:
a) sets session.affiliate variable
b) throws the error


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources