cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict simultaneous log in of a user

Former Member
0 Kudos

Hi Experts,

I am facing one problem to implement the following scenario,

The requirement is at a time one user can log in to the portal only once.Means after login if he tries to logging from another system it will not allow him to do that and give one message that "you are already logged in".

Please provide some solutions for that

- Indranil

Accepted Solutions (0)

Answers (2)

Answers (2)

PradeepBondla
Active Contributor
0 Kudos

Sorry, if I mis guided you...

this post will surely solve your problem...

/message/4976747#4976747 [original link is broken]

content is...

you have to modify the headerIview.jsp by using session variables.

when a user logs into portal you have to keep his details in a session and check them everytime when he tries to login again.if it is not the first time then throw and error message

refer this for changing the par file

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d07bf112-1705-2a10-1a9f-d0a705e5...

code will be something like this

session.setAttribute("user",request.getUser());

if(session.getAttribute("user")!=null)

error message

xxxxxxxxxxxxxxxxxxxxx

regards,

Pradeep

Edited by: Armin Reichert on Apr 26, 2008 6:38 PM

Former Member
0 Kudos

hi pradeep,

I have created one portal project and import the masthead.par in it.I have changed the coding as you mentioned.But I am little bit confused with the name of the .par file.

it will be same as masthead.par or I can give any other name?

- Indranil

PradeepBondla
Active Contributor
0 Kudos

Hi indra,

As mentioned in the document very clearly... you have to change the .par file name... like MYMASTHEAD.par, or something else... its recommonded also...

regards,

Pradeep

Former Member
0 Kudos

Hi Pradeep,

Whenever I am trying to get the preview of the i-view it is giving the portal runtime error with exception Id.

I have performed the following steps,

1.Create one EP project in NWDS(Only project,no component)

2.import the masthead.par file into the project.

3.puted the coding into the jsp page.

4.Export the par file.

5.create one i-view from the project.

If i made any changes in the par file,say i made a change in the message in the property file of the par file and created i-view from that it is giving error also.

please help

-Indranil

PradeepBondla
Active Contributor
0 Kudos

Hi

U can do it by using the property "login/disable_multi_gui_login "....

Multiple Logon

Parameter Meaning

login/disable_multi_gui_login Controls the deactivation of multiple dialog logons

Available as of SAP Basis 4.6

login/multi_login_users List of excepted users (multiple logon)

Available as of SAP Basis 4.6

related documents are.....

1) http://help.sap.com/saphelp_nw70/helpdata/EN/a3/68c6385740b561e10000000a114084/frameset.htm

2)http://help.sap.com/saphelp_nw70/helpdata/EN/22/41c43ac23cef2fe10000000a114084/frameset.htm

regards'

Pradeep

Former Member
0 Kudos

thanks for the reply .... but my requirement is to prevent simultaneous login in a user account in portal not in GUI.