Skip to main content
Participant
April 1, 2009
Question

Create multiple sessions

  • April 1, 2009
  • 2 replies
  • 563 views
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?
This topic has been closed for replies.

2 replies

davidsimms
Inspiring
April 1, 2009
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
April 1, 2009
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.
Inspiring
April 1, 2009
You don't.

What were these sessions going to do?