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

Create multiple sessions

New Here ,
Apr 01, 2009 Apr 01, 2009

Copy link to clipboard

Copied

Basically,

I have to create multiple sessions and sessionIDs on one server, and then pass it off to various clients based on their IP address. Is this possible (to transfer sessions like that)? How can I create multiple sessions on the server?
TOPICS
Advanced techniques

Views

480

Translate

Translate

Report

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 01, 2009 Apr 01, 2009

Copy link to clipboard

Copied

You don't.

What were these sessions going to do?

Votes

Translate

Translate

Report

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
Contributor ,
Apr 01, 2009 Apr 01, 2009

Copy link to clipboard

Copied

To echo Dan--you don't.

You might want to read up on sessions and state management at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html

Votes

Translate

Translate

Report

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
Guest
Apr 01, 2009 Apr 01, 2009

Copy link to clipboard

Copied

LATEST
Not sure why you might want to do this but I think it may be possible doing a screen scrape against the url with the app you want to create the session on.

Essentially you would need a page the client hits, that would then do a cfhttp call to the app where you want to create a session. The cfhttp return will contain a structure and you should have a new cfid and cftoken on there. do a <cfdump var="#cfhttp#"> to see what's in there. You'd grab these to values out of the return and do a cfcookie and set the cfid and cftoken values to the values you grabbed out of cfhttp.

I've never done this before, but I don't see off hand why it wouldn't work. If the cfcookie thing doesn't work you may try a cflocation addtoken='no' and and a url the specifies the cfid and cftoken from the cfhttp call.

Votes

Translate

Translate

Report

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
Documentation