cancel
Showing results for 
Search instead for 
Did you mean: 

Get user id from session? :S

Former Member
0 Kudos

Hi all!

I'm new on Netweaver. I have php pages working on my local server and i will put them into the portal with a Web Url iview template.

Everything is fine but i have to take the user id which is logged into portal and requested that page. I have found some threads about my question but nothing found.

There is a cookie named $_COOKIE['MYSAPSSO2'] but i can't take it.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

steffen_spahr2
Participant
0 Kudos

Hi,

if you use the SAP Application Integrator you can define your url like this:

http://www.yourhostname.com/...?userid=<User.UserID>; .

After calling this iView from the portal the template >User.UserID> will be replaced with the portal-login-userid.

Hope it will help.

Regards

Steffen

Former Member
0 Kudos

Hi

It is possible to use the SAPLOGONTICKET (that is what the MYSAPSSO2 cookie is) in 3rd party applications. Check [SAP note 304450 - Single-Sign-On with SAP logon tickets in non-SAP systems|https://service.sap.com/sap/support/notes/304450] for details.

Best regards, Michael

Edit: if you use IIS for your php pages, then this blog might be helpful too: [SSO to IIS from Enterprise Portal using SAPSSOEXT|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7738] [original link is broken] [original link is broken] [original link is broken];

Just search for SAPSSOEXT...

Former Member
0 Kudos

Ok i know SAPlogonticket but i dont know how to use them from a remote machine.

I dont want to install my Apache server to portal machine. Can i use them with posting any data like form method or forwarding it in session or writing it into the cookie. Actually i dont know writing code in portal with WebDynPro Java / Abap or smthing else.

Edited by: Görsel KIRAS on Feb 20, 2009 8:02 AM