Ending a Session

Does anyone know of a way to end a session (AKA force a user to logout) is the same user name is used to logon somewhere else? I have an application where if a username is used to login twice to the same application AKA the user has two open sessions the previously open session needs to be deleted.
When a user logs on it records there sessionid and user id to a table in the database, so I have the session id of the session i want to kill.
Thank you in advance for any help. Let me know if that still sounds to confusing.

Yes, the code I showed in the other post.
sessionKill.cfm
<cfset structClear(session)>
<!--- This will clear the current session of all data, which should log out any user since the login state is ususlly stored in the session scope --->
Some file somewhere the detects a user has been logged in twice
<cfhttp url="sessionKill.cfm?cfid=#otherSessionCFID#&cftoken=#otherSessionCFTOKEN#"...>
<!--- This will make an HTTP request passing in the known id and token of a session, that session should then have all it's data cleared by the sessionClear() function--->
As I said, this does not actually remove the session from memory of ColdFusion.  That can't be done without mucking around with the serviceFactory.  But the session will have no data and if a user where to return to it they should not be logged in or have any saved data.

Similar Messages

  • How to end RDP sessions remotely from different network?

    Hi
    How to end RDP sessions remotely for windows 2008r2 server from different network?
    not from local LAN
    Thanks

    Hi
    what ports need to be open to successfully connect to server behind firewall?
    from WAN to LAN using :
    net use \\servername_or_IP /USER:username “password“
    or
    qwinsta /server:ServerIP
    Thanks

  • How to end user session correctly as sys or system user

    Hi,
    Database version Oracle 10.2.0.3
    We have to end user sessions to update database content. We cant stop/shutdown the instance but we have to assure that some users are not logged on.
    So we are looking for a solution to end some arbitrary user sessions as sys or system user without using the KILL USER SESSION option. We want to assure that the user sessions end correctly.
    Is there a possibility or a command in Oracle 10g to end a user session correctly ?
    Thanks for your assistance.

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_2013.htm#i2053602
    I think DISCONNECT SESSION Clause is what you are looking for.
    Let us know if this is not the case.

  • Closing/ending a session in jsp

    Hi guys i need help ending my session. I am using session just for parameter passing, my webpages doesnt need login logout function.
    These are my basic code:
    page1.jsp
    <%
    String prodlinesel = request.getParameter("prod_line");
    session.setAttribute( "sessprodline", prodlinesel );
    %>
    page2.jsp
    <%= session.getAttribute("sessprodline") %>
    how,when &where do i end my session ? thanks so much

    You can use session.removeAttribute("sessprodline");
    Calling session.invalidate() will invalidate the session.
    Otherwise it disappears after it times out - normally after about 30 minutes of inactivity from that session.

  • How to create session and end the session in atg without using ootb

    can anyone send the code for creating session(Login) and ending(Logout) session in atg without using ootb.
    thankyou!

    It is plain simple and is plain old request.getSession(false) and then invalidate the session , but why do you want to do it separately . ATG works behind scenes to associate lot of attributes to the session when log in happens and then deassociates them when log out happens , SessionManager component is also helpful in security , can you state why exactly would you want to do it?

  • Forcing End Of Sessions

              Hi,
              I am attempting to implement Session management functionality that will allow
              Administrators to view and if necessary end a User's or a given set of Users HTTP
              Sessions forcing them to re-logon. I am considering using HttpSession.invalidate()
              to end the sessions. This is fine so long as the user is not in the middle of
              a request but if in the middle of a request I am concerned that it will cause
              some nasty errors.
              Is there a better way of safely ending sessions and if a session is invalidated
              mid request will this end the request?
              Thanks in advance for any info or suggestions.
              Jim
              

              Hi,
              Thanks for that. I originally thought that invalidating the sessions was the neatest
              solution but based on the fact that it will kill any requests in midstream (probably
              not ideal for what I am doing) I think I will just update the User's session to
              indicate that they should re-logon. If the User executes another request they
              will be automatcially re-directed to logoff/re-logon.
              Thanks again for your help.
              Jim
              "KP" <[email protected]> wrote:
              >
              >Hi Jim
              >Your concern about "in the middle of a request" is correct and chances
              >of IllegalStateException
              >generation is high. But if think, you must do it, catch this exception
              >and redirect
              >user to login page.
              >Cheers
              >KP
              >
              >"Jim Donnelly" <[email protected]> wrote:
              >>
              >>Hi,
              >>
              >>I am attempting to implement Session management functionality that will
              >>allow
              >>Administrators to view and if necessary end a User's or a given set
              >of
              >>Users HTTP
              >>Sessions forcing them to re-logon. I am considering using HttpSession.invalidate()
              >>to end the sessions. This is fine so long as the user is not in the
              >middle
              >>of
              >>a request but if in the middle of a request I am concerned that it will
              >>cause
              >>some nasty errors.
              >>
              >>Is there a better way of safely ending sessions and if a session is
              >invalidated
              >>mid request will this end the request?
              >>
              >>Thanks in advance for any info or suggestions.
              >>
              >>Jim
              >
              

  • How can i check that who end the session

    Hi to all ,
    my query is that how can i check that who end the session.
    through SM04 user who have the authontication can end the session so how can i check that who end the session being a BASIS admin.
    Thanks & Regards

    It's wrotes in system log, check in sm21.
    Regards.

  • My Assets iView problem (ESS 50.1.) - "End of Session" returns from ITS

    Hi guys!
    I have problem with some IAC iViews of ESS 50.1. BP. When I click the link to some of them - My Assets for example, I get screen from its with following message:
    End of Session. Thank you for working with Internet Transaction Server.
    Other iViews from the BP work fine.
    What could be the problem?
    Thanx for answers!
    Olian

    Hi guys!
    I have problem with some IAC iViews of ESS 50.1. BP. When I click the link to some of them - My Assets for example, I get screen from its with following message:
    End of Session. Thank you for working with Internet Transaction Server.
    Other iViews from the BP work fine.
    What could be the problem?
    Thanx for answers!
    Olian

  • Leave request ITS end of session error

    Hi,
    There are few users who are a getting a error saying "End Of Session Thank you for working with the Internet Transaction Server! " when they tried to access leave request ( ws20000081) and leave request overview ( ws01000109). this error is coming to particular cost center users, all other users doesn't have this problem. furthermore we have given the auth as well.
    For these particular users they have been performing ESS tasks before and this issue came 3weeks back.
    i checked the HR org structure nothing has been changed. please help
    Regards
    Aflal

    can you check the same service being launched from r/3 ie
    enter /n
    and then ws20000081
    execute.
    This is the case most likely with ITS templates
    See the following SDN and HELP.SAP.COM site which will provide more
    information.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/
    InternetTransactionServer&
    How to terminate a user session with integrated ITS when the transaction
    ends?
    and note
    959417, "Integrated ITS, Closing Session When Transaction Ends"
    Re the "redirection" please review the following:
    SAP Note 916727.

  • End of Session ITS

    Hi!
    I have problem with transaction iView in ITS, When I click the execute botton, I get "End of Session - Thank you for working with Internet Transaction Server" text. What's wrong? Why is not displayed the transaction? Other transactions incl. Leave Request are O.K. Can it be problem with publishing?
    Thanks.

    Hi!
    I have problem with transaction iView in ITS, When I click the execute botton, I get "End of Session - Thank you for working with Internet Transaction Server" text. What's wrong? Why is not displayed the transaction? Other transactions incl. Leave Request are O.K. Can it be problem with publishing?
    Thanks.

  • Since updating to IOS 6, my autolock is not work if I end the session in Messages, Notes Or Calendar. What's up

    since updating to IOS 6, my autolock only works tf I end the session in phone. What's up?

    I have the same problem too.

  • Handling End of Sessions

    Hello,
              I want to handle end of a session. I want to redirect the user to the Login
              page when the session ends.
              What is the best way to do it? Is there an event that is generated when the
              session ends? If so how will my Servlet get that Event?
              I am using a combination of Html, Servlets, and JSP (transparently compiled
              to Servlets).
              Thanks in advance
              

              [email protected] wrote:
              > Thanks for the information. I understand how I can invalidate a
              > session.
              OK.
              > What I was looking for is a little different. How can I
              > FIND WHEN THE WEB LOGIC SERVER ENDS MY APPLICATION SESSION?
              > Do my application get an event so that I can invalidate the session
              > and send the user to the logon page?
              You cannot find when the WLS ends your session unless & until you write
              your own version of Event class.
              HttpSessionBindingListener is a best bet to implement this feature.
              (Causes an object to be notified when it is bound to or unbound from a
              session. The object is
              notified by an HttpSessionBindingEvent object)
              1. Create a class say NotifySessionTimeout that implements
              javax.servlet.http.HttpSessionBindingListener
              2. create an object of the above class and attach it to user session
              3. when the session is removed NotifySessionTimeout.valueUnbound( ) will
              be called by the servlet engine.
              4. you can implement valueUnbound( ) to do whatever you want.
              Kumar
              >
              >
              >
              >
              >
              >
              > Allamraju Kumarswamy wrote:
              >
              >> Sailaja--
              >>
              >> You can invalidate the current session by calling
              >> session.invalidate( ) .
              >> Where session is HttpSession's object.
              >>
              >> For this you might want to configure the session tracking in
              >> weblogic.properties file
              >>
              >> weblogic.httpd.session.enable=true (already set to true)
              >> weblogic.httpd.session.timeoutSecs=x
              >>
              >> Sets how long WebLogic waits before timing out a session, where x is
              >> the number of seconds between
              >> a session's activity.
              >>
              >>
              >> Hope this helps.
              >>
              >> Kumar
              >>
              >> Sailaja wrote:
              >>
              >> > Hello,
              >> >
              >> > I want to handle end of a session. I want to redirect the user to
              >> > the Login
              >> > page when the session ends.
              >> >
              >> > What is the best way to do it? Is there an event that is generated
              >> > when the
              >> > session ends? If so how will my Servlet get that Event?
              >> >
              >> > I am using a combination of Html, Servlets, and JSP (transparently
              >> > compiled
              >> > to Servlets).
              >> >
              >> > Thanks in advance
              >>
              [att1.html]
              

  • Ending/ Starting Session?

    I have this site that when they get to a certain point, I
    want their
    session to end so they can't go through the whole process
    with the same
    session.
    First, how can I end their session?
    Second, how do I force a new session to begin?
    Is there something that can be set on the server so that when
    people hit
    a certain page, a new session is started?

    OK - what are you using ASP, .net ?
    Session.abandon is pretty simple, it kills all session stuff
    (like
    variables)
    <% Session.Abandon %>
    On a page would literally terminate the session
    Starting a session is automatic, no action neccesary ?
    Gerry
    http://www.Mixit.TV
    "Lee" <[email protected]> wrote in message
    news:eojhgm$l6g$[email protected]..
    > I've heard of using
    >
    > Session.Abandon
    >
    > Where would this go and how does it work?

  • Ending bean session

    Is there a way to end a bean session in JSP pages?
    After using a bean (scope session) I want to end the use of it.

    You might try using
    session.removeAttribute(beanname);

  • X crashes when ending X session [SOLVED]

    Hello,
    I am suddenly having a problem where X crashes when I end an X session. I am using the slim login manager, the fglrx driver and wmii as a window manager. When my machine first boots, slim starts and I can log into X, and everything works fine, but my machine locks when I try to end my X session. The screen goes blank and neither Ctrl+Alt+Backspace, nor Ctrl+Alt+Delete nor Ctrl+Alt+Fn work. However, I hear that my laptop fan turns on high so it sounds like X is in a tight loop somewhere using all the CPU. I must reboot to recover. If instead of ending my X session through wmii's quit command I kill X with Ctrl+Alt+Backspace, I get the same result except that my screen doesn't go blank. Wmii ends and I'm left with an immobile mouse and my wallpaper and X in a tight loop.
    Now, my Xorg.conf, .xinitrc, and slim.conf have not changed in months and have been working perfectly, so I'm just about 100% sure it's not a configuration problem. I do note that this has been occurring since I upgraded xorg-server (1.4.0.90-6 -> 1.4.0.90-8), xkeyboard-config (1.1-1 -> 1.2-1) and xf86-video-ati (6.7.197-2 -> 6.8.0-2) a couple of days ago. Has anyone else experienced any problems with X and the recent update?
    EDIT: OK, I set up telnet on the machine and found that when X dies and the machine locks up, I can still telnet in and reboot the machine. The odd part is when I look at the process list (ps -e) when the machine is locked, I don't see any X processes. I can see and kill my login process, but the machine stays locked up. I checked my Xorg.0.log.old after restarting and I see:
    Backtrace:
    0: /usr/bin/X(xf86SigHandler+0x7e) [0x80e053e]
    1: [0xb7f28420]
    2: /usr/bin/X(Xfree+0x21) [0x81b2681]
    3: /usr/bin/X [0x81a4c10]
    4: /usr/bin/X [0x81a4cac]
    5: /usr/bin/X [0x81a46ed]
    6: /usr/bin/X(SrvXkbFreeGeomRows+0x49) [0x81a4859]
    7: /usr/bin/X [0x81a48a1]
    8: /usr/bin/X [0x81a46ed]
    9: /usr/bin/X(SrvXkbFreeGeomSections+0x49) [0x81a4809]
    10: /usr/bin/X(SrvXkbFreeGeometry+0xdf) [0x81a4f1f]
    11: /usr/bin/X(SrvXkbFreeKeyboard+0xc1) [0x81a30f1]
    12: /usr/bin/X(XkbFreeInfo+0xdf) [0x819180f]
    13: /usr/bin/X [0x8084b8f]
    14: /usr/bin/X(CloseDownDevices+0x29) [0x8084fe9]
    15: /usr/bin/X(main+0x4be) [0x8073e6e]
    16: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7cfd390]
    17: /usr/bin/X(FontFileCompleteXLFD+0x205) [0x80731b1]
    Fatal server error:
    Caught signal 11. Server aborting
    It seems something is segfaulting when trying to exit X. Aaargh.
    OOPS: I posted too quickly. A little googling found this Debian bug report. I switched my keyboard model from "latitude" to "pc101" and all was well. Looks like this version of the X server has some problems.
    Regards,
    j
    Last edited by jbromley (2008-03-22 08:15:06)

    Edit:
    Well turns out, the synaptics error pops out when running openbox too. I Ctrl+Atl+F1ed, and there is was again, but still openbox starts and works fine! My touchpad works fine, with scrolling and all that.
    How do I get awesome to run?
    EDIT:
    Turns out the Synaptics driver issue was totally irrelevant. I sorted that out (double loading of drivers) by reading https://bbs.archlinux.org/viewtopic.php?pid=835318
    But awesome does not start. I get that nvidia screen and then get thrown back at the console, with no errors or anything!
    Last edited by maxarch (2010-11-08 19:08:20)

Maybe you are looking for