Managing user sessions using a database

It has been suggested to me that I might want to look at
storing user sessions in a database. I use sessions a lot within my
applications but this is all a little beyond me. How would I go
about implementing such a move in coldfusion?
Thanks

What specific information were you thinking of
storing?

Similar Messages

  • Manage User Sessions

    I know how to manage user sessions from Visual Administrator using Security Provider Service - Login Sessions. How can I do the same using SAP Netweaver Administrator?

    HI,
    What do you mean? usualy you use users ....... by going to T-CODE su01..
    Your question is not clear. There is such nothing called using SAP NETWEAVER Administrator. or I dont have knowledge.
    Hope You got the work done by going to su01..
    Thanks,

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • Managing user sessions in RDS on Server 2012 R2

    I'm planning on deploying Server 2012 R2 Remote Desktop Services, and I'm finding I'm going to have to go to a training class!  Unfortunately, I don't have the time to do that before deploying. I've figured out how to use policy editor to configure
    what I used to accomplish in "Terminal Services Configuration". What tool do I use to manage Remote Apps, and what tool do I use to view session details? I know I can remote control user sessions from Task Manager, but that doesn't give visibility
    to view session idle time, logon time, etc.

    Is it on a Domain or Workgroup, if it is on a Domain (and you had previous experience with RDS 2008/R2) then you can simply read this guide
    http://social.technet.microsoft.com/wiki/contents/articles/20684.management-how-to-changes-for-rds-in-windows-server-2012-and-2012r2.aspx
    If it is on a workgroup you have to do a bit more to get it right. The only problem is if you are on a workgroup you can not have RemoteApps
    Hope this helps!

  • How to manage User Session in Adf ?

    Is there any guide line to manage the user session in adf ?

    View layer Http session if it is not a desktop based application. Model layer also you can store session using
    getSession().getUserData()But before that the information you provided is not enough. You need to describe in more detail of what session and what exactly are you looking for

  • Re: User Session using ServletSession and Stateful EJB in Cluster

              Sorry , I didn't use WLS 6.0, we use wls 5.1 in production.
              But in Wls 6.0, in some situations , the state of the stateful session bean can be lost. So it's not so reliable. You have to deal with it in the client code. Instead, servlet is a reliable solution.
              In order to test under wls6.0, you can store the handle of the EJBObject in the HttpSession, not in jndi, cos if the instance fails, all its objects will be removed by remaining instances from jndi. In another instance, you get the handle, and try to get the EJBObject.
              In wls5.1, some information like the server url must be embeded inside the handle. But in wls6.0, I don't know how they deal with it.
              I am looking forward to your results
              "Anuj Soni" <[email protected]> wrote:
              >
              >What kind of clustering problems you had with WL6.0 for Stateful session beans ? It will be helpful for me to know before hand.
              >
              >BTW, how were you able to test stateful session beans in a cluster under WL6.0 i.e. were you storing the Handle or EJBObject in HttpSession or did you store it in JNDI ?
              >
              >Thanks,
              >
              >Anuj
              >"Tao Zhang" <[email protected]> wrote:
              >>Although it's very advanced to take advantage of both http session and
              >>stateful session bean replication, but if you rely on the stateful session
              >>bean's state, you will be in trouble. Because the support of stateful
              >>session bean's replication is not perfect in wls6.0. We already chaned
              >>almost all stateful session beans into servlets or entity beans.
              >>
              >>I am not sure about the handle of the EJBObject. I think it should be able
              >>to reconstruct for us otherwise we can't use the handle any more.
              >>
              >>You can do a test. BTW, could you tell me the result?
              >>
              >>Thanks.
              >>
              >>Anuj Soni <[email protected]> wrote in message
              >>news:[email protected]...
              >>>
              >>> Hi,
              >>>
              >>> I am designing the workflow for my web application using a Stateful
              >>session bean. As Weblogic 6.0 supports clustering of stateful session bean
              >>and HttpSession(in-memory replication), I want to use the combination of
              >>both techniques to provide load-balancing and fail-over safety for user
              >>sessions and their corresponding workflows.
              >>>
              >>> The question I have is that, Is Handle obtained using
              >>EJBObject.getHandle(), fail-over safe (for a clusterable stateful bean), so
              >>that I can reconstruct the reference to EJBObject on the secondary server
              >>incase of primary server crash.
              >>>
              >>> My understanding is that I should store Handle in the HttpSession as it is
              >>Serializable not the EJBObject. The weblogic 6.0 document only talks about
              >>the replica-awareness of EJBObject.
              >>>
              >>> If my above assumption is incorrect, Can you tell me how else I can
              >>achieve my goal ?
              >>>
              >>> Thanks in advance.
              >>>
              >>> Anuj Soni
              >>
              >>
              >
              

    Any one tested this scenario yet? i.e: storing the handle to an EJB object and then trying to re-use after the HttpSession is restored?
              Thanks.
              

  • How manage timeout Session using java SDK?

    Hi everyone !
    I'm working with BO 4.1 and the Java SDK. I'm refreshing and exporting webi reports in my code. But it happens, sometimes, the report takes longer to refresh (when calling "setPrompts") and the session is over (timeout like when you're connected in the Launchpad).
    Is there any specific way for me to test if the call to setPrompts ends without timeout? Because, now, if it ends by a timeout, I do not see anything and I'm exporting a blank document. No error or exception :-/
    Do I have to use de EnterpriseSession?
    Thanks in advance !

    Hi Jerome,
    To understand BO session management, refer to the below document.
    http://scn.sap.com/community/bi-platform/blog/2013/11/27/session-management-bible
    How do you specify that there is a timeout? Do you get timeout errors in web intelligence server logs?
    Check whether enterprise session is still valid.
    What is the approximate time delay you observe for setPrompts when you observe the timeout?
    -Prithvi

  • Losing user session using the AutoLoginBacking portlet

    I have a need to use a cookie based login within my portal. I am using the AutoLoginBacking
    portlet that is located in the tutorial.portal samples. My portal contains a
    Main Book with a page (that contains the AutoLoginBacking.portlet) and two nested
    books within the Main Book (one book contains 1 page, the other book contains
    4 pages in a "tabbed" fashion)
    I have noticed that this AutoLoginBacking Login portlet appears to be losing the
    session when I move to the book containing the 4 pages within my bea portal.
    This nested book contains pageflow portlets. When I traverse to page 1 of this
    book, the login session appears to work fine, but when I traverse to page 4, I
    seem to loose the session.
    The way I see this behavior occuring is I grab the user name and place it on the
    page...only on page 1 does it appear, on page 4, it appears as null and my AutoLoginBacking
    portlet reverts from Logout to Login
    Could this be do to the fact that the login uses a backing file instead of it
    being a PageFlow portlet like the LoginController? I've read some documentation
    on the bea site: http://dev2dev.bea.com/products/wlworkshop81/articles/pg_flows.jsp
    that states, "Forwarding/redirecting to a nested page flow, or raising any action
    on it, causes nesting to occur. The original page flow is pushed onto the "nesting
    stack" until the nested page flow raises a return action, using the return-action
    attribute on @jpf:forward. "
    Does anyone know how to resolve this issue?
    Thanks for your help.

    I have a need to use a cookie based login within my portal. I am using the AutoLoginBacking
    portlet that is located in the tutorial.portal samples. My portal contains a
    Main Book with a page (that contains the AutoLoginBacking.portlet) and two nested
    books within the Main Book (one book contains 1 page, the other book contains
    4 pages in a "tabbed" fashion)
    I have noticed that this AutoLoginBacking Login portlet appears to be losing the
    session when I move to the book containing the 4 pages within my bea portal.
    This nested book contains pageflow portlets. When I traverse to page 1 of this
    book, the login session appears to work fine, but when I traverse to page 4, I
    seem to loose the session.
    The way I see this behavior occuring is I grab the user name and place it on the
    page...only on page 1 does it appear, on page 4, it appears as null and my AutoLoginBacking
    portlet reverts from Logout to Login
    Could this be do to the fact that the login uses a backing file instead of it
    being a PageFlow portlet like the LoginController? I've read some documentation
    on the bea site: http://dev2dev.bea.com/products/wlworkshop81/articles/pg_flows.jsp
    that states, "Forwarding/redirecting to a nested page flow, or raising any action
    on it, causes nesting to occur. The original page flow is pushed onto the "nesting
    stack" until the nested page flow raises a return action, using the return-action
    attribute on @jpf:forward. "
    Does anyone know how to resolve this issue?
    Thanks for your help.

  • How to delete last user session from backend SQL query?

    Sometimes user session gets closed between some work by any reason.
    When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
    In that case if i decided to clear last session history of that user from database, how to write SQL query?
    I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).

    I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
    Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
    Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
    Hope this helps
    Regards,
    Sachin Gupta

  • Kill user sessions dynamically through PL/SQL

    Hello,
    Every night I have to DROP one user in order to recreate the entire schema. In order to do this I have to disconnect the user from the DB by killing its sessions. I am using following PL/SQL code
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    begin
        for x in (
                select Sid, Serial#, machine, program
                from v\$session
           where username = 'STARSTAGING_DB'
       ) loop
              execute immediate 'Alter System DISCONNECT Session '''|| x.Sid
                      || ',' || x.Serial# || ''' IMMEDIATE';
        end loop;
    end;
    DROP USER starstaging_db CASCADE;
    ALTER SYSTEM DISABLE RESTRICTED SESSION;
    I have also tried using keyword KILL instead of DISCONNECT of session.
    Most of the day this works, user is dropped and new one is created, but sometimes I get the following problem.
    The problem that has occurred in a log file is:
    PL/SQL procedure successfully completed.
    DROP USER starstaging_db CASCADE
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected
    System altered.
    CREATE USER STARSTAGING_DB IDENTIFIED BY *****
    ERROR at line 1:
    ORA-01920: user name 'STARSTAGING_DB' conflicts with another user or role name
    Does anyone have an idea how I can make sure that the user for sure disconnects, so that I can drop him?
    Best Regards,
    Vladimir

    Cannot comment on a better approach as that means a proper analysis of the business requirements. Just keep in mind that killing sessions is a brutal way to manage user connectivity to the database - and should be seen as an exception and the last resort.
    You can wrap your schema drop code into a retry loop. Something as follows:
    loop
       begin
          ..do the drop..
          success := true;
      exception when FAILED then
          dbms_lock.sleep(60); -- sleep 60 seconds
      end;
      retry := retry + 1;
      exit when success or retry > HAVE_WAITED_LONG_ENOUGH;
    end loop;

  • [SOLVED] Question about systemd-user-session

    Hi!
    I'm trying to setup a systemd --user session (using user-session-units and xorg-launch-helper from aur).
    I have a couple of questions; this is my .xinitrc now:
    #!/bin/bash
    export BROWSER=chromium
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    spacefm --desktop &
    compton -cGCf -m 0.9 -i 0.8 -D 5 --shadow-exclude 'g:e:Conky' &
    volumeicon &
    /home/federico/Script/touchpadoff_onboot.sh &
    #connman-ui-gtk &
    /home/federico/Script/calised-script &
    dimdaemon &
    tint2 -c .config/tint2/dragonauta.tint2rc &
    conky -p 5 -c Script/conky.conf &
    exec openbox
    1) is "if" statement required when using systemd-user-session? And if yes, how can I reproduce it?
    2) "conky -p 5 " will wait 5 seconds doing nothing. Will this mean that other .service will wait for it to finish? (i guess no, since they're executed in parallel).
    3) how can I export "chromium" as my default browser?
    Thank you very much!
    Last edited by nierro (2013-04-06 17:56:17)

    I followed everything in that wiki, and in KaiSforza and sofar github page.
    I finally managed to get my old method (autologin to vt and autostart x) to work together with systemd --user: i put in .xinitrc "systemd --user" and deleted everything else.
    So, my .config/systemd/user/ works. The problem is in the [email protected], i guess. I configured it like wiki says, mind to post here your /etc/systemd/system/[email protected]?
    Thanks.
    EDIT: here it is my [email protected]:
    # This file is part of systemd.
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    [Unit]
    Description=User Manager for %I
    After=systemd-user-sessions.service
    # This is needed for folks running Xorg on vt/1
    Conflicts=[email protected]
    [Service]
    User=%I
    PAMName=login
    # Note memory:/ required kernel memory CGroups support
    ControlGroup=%R/user/%I/shared cpu:/ memory:/
    ControlGroupModify=yes
    Type=notify
    TTYPath=/dev/tty1
    ExecStart=-/usr/lib/systemd/systemd --user
    Environment=DISPLAY=:0
    Environment=XDG_RUNTIME_DIR=/run/user/%U
    Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
    [Install]
    WantedBy=getty.target
    and loginctl says my user has "1000" as UID.
    Last edited by nierro (2013-04-05 16:13:14)

  • 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.

  • How to check if a user session is active in Java application server

    Hi Experts,
          We have a online scenario with a third party system by which a portal user will launch the third party application in a new window from portal. The SSO will work at the third party web application with the dynamic key that is generated by calling a webservice for that user. Now, as the user works on the launched screen, they will have to check whether the user (logged in portal) session is still active. ie., they will be periodically calling a service hosted by SAP java application server to find out whether the corresponding user who launched the session is still logged in or logged out.
    So, my question is, how can i find out programatically whether a user/user's session is still logged in/active in SAP Netweaver Java AS? We are in version 7.3.
    Kindly help me in this regard.
    Regards
    Vijay.K

    Hi Vijay,
    Could you check below links
    Tracing Single User Sessions - Administration - SAP Library
    Display and Manage User Sessions (SAP Library - Tools for Monitoring the System)
    Hope this helps.
    Regards,
    Deepak Kori

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

  • Using computer manager to determine user session and files open in a remoteApp session

    Hello All,
    I have remoteapp users the use Sage 50, QuickBooks and a MS Access based program.
    When the users are connected to the remoteapp I cannot see them using the computer manager in windows 2008 R2 server, using taskmgr I can see the user on the networking tab, and on the process tab I can see the access, quickbooks, and peach (sage) processes
    but I would think in computer manager I would see the quickbooks access db and sage files that the apps open but I do not. Is this normal and if so is there a way to monitor remoteapp users application /file use?

    Hi
    If they are accessing the files locally then they will not show up in Computer Management.  One way you can see open files is to use Process Explorer.  In Process Explorer you can select the process and then in the lower pane view you will see
    file and other handles (make sure lower pane view is set to Handles on the view menu).
    -TP

Maybe you are looking for

  • ITunes won't add songs to my iphone/adds them but they don't actually add?

    Ok, so I keep trying to add songs to my iPhone, and half of them just appear greyed out with the circle next to them, and no matter how many times i sync, they won't ever add. Then, out of the songs that do add randomly, most of them don't appear on

  • Zero session ID

    Hi I am confused about what I have to do to initiate the zero session ID mode. I wish to invoke this so that I can better track the usage of my application public pages via google analytics. But every page still shows and records the actual session I

  • Can your ipad every be hooked up wirelessly to a printer?

    i am looking to buy an ipad air and a new printer but i want to make sure that im going to be able to either wirelessly or through bluetooth be able to hook up and print stuff ? any suggestions or know printers that will be this

  • Where can I find a collaboration demo?

    I'm trying to sell the benefits of portal to our business and I can't for the life of me seem to find a demo of collaboration.  I know it's a very cool feature yet it's hard to sell the business without some sort of demo of what it is all about.  It'

  • Stupid question about "native" programs...

    Hi I'm buying my first Mac this weekend (hopefully) and I'm getting the MBP 17in primarily for CS2 work. I keep reading that CS2 isn't native and will run thru rosetta - but is that the "windows" version or the "mac" version ? I'm assuming that to ru