function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Volker_factory42Volker_factory42 

Sessionlogin with Winter12 not working anymore...

Hi,
last weekend, Tapp0 Sandbox was upgraded to Winter '12.We have a Flash/Flex File, which included a working Session login (working with Summer '11).
We're giving SessionId from Apex:

UserInfo.getSessionId();

 


to Flexmethod:

     	if (initsession_id != null) {
     		infotext.text = "Login via Session " + initserver_url.toString();
	     	lr.server_url = initserver_url + '/services/Soap/u/22.0';
	     	lr.session_id = initsession_id;
	     	exturl = initserver_url;
     	} else {
     		infotext.text = "Login via User";
     		
			lr.username = user;
			lr.password = pwd + token;

     		conn.serverUrl = "https://test.salesforce.com/services/Soap/u/22.0"; 
     	}
     	
     	lr.callback = new AsyncResponder(loginResult, loginFault);
     	conn.login(lr);

 

  

We receive no response from Salesforce, flexfile can't login. It's working fine with Username and Password+Token.

I hope you can help!

Best Answer chosen by Admin (Salesforce Developers) 
Volker_factory42Volker_factory42

We found a solution, it's also mentioned by Salesforce as "workaround":

 

Use 

{!$Api.Session_ID}

 instead of 

 

{!$UserInfo.getSessionID}

 and it'S working fine :-)

All Answers

EJWEJW

I'm having the same issue with a flex app that's logging in utilizing the current session, which is retreived from apex code just as yours is.  I'll pursue this on my end and post here if I find a resolution.

 

Thanks,

tmatthiesentmatthiesen

Known issue.  Should be fixed in a patch -which should be live by tomorrow AM.

Volker_factory42Volker_factory42

We found a solution, it's also mentioned by Salesforce as "workaround":

 

Use 

{!$Api.Session_ID}

 instead of 

 

{!$UserInfo.getSessionID}

 and it'S working fine :-)

This was selected as the best answer