Session not working

An user if logged-in one machine will not be allowed to logged-in in another machine during that period of time. I tried using session but fails, as session is for a particular one only.
What should i use?
PLease help.

Hi,
I had implemented this facility in one of my application but my approach to do this was different i didn't used session for that.what i did is that every time when a user logges in i checked his username in one of my table that stores all the details of logged in users if that user is already logged in from any M/c i display a msg that you have already logged in.
I don't know wether my approach will help you or not?
regards,

Similar Messages

  • Telnet session not working in OEL -5

    Telnet session not working in OEL -5
    ==============================
    1. Installed xinetd and telnet-server packages on the box.
    2. Enabled the xinetd service.
    # service xinetd start
    # chkconfig xinetd on
    Telnet still not working. Please help.
    Lily.

    Re-ran the /etc/init.d/xinetd restart command. Telnet cannot connect and this is what I get:
    Unencrypted connection refused. Goodbye.
    Below is the telnet.cfg
    ==================
    # default: on
    # description: The telnet server serves telnet sessions; it uses \
    #     unencrypted username/password pairs for authentication.
    service telnet
         flags          = REUSE
         socket_type     = stream
         wait          = no
         user          = root
         server          = /usr/sbin/in.telnetd
         log_on_failure     += USERID
         disable          = no
    ===================

  • Option of 'Restore Last Session' not working. Is there any option to repair the 'Mozilla Firefox' without loosing History?

    Option of 'Restore Last Session' not working. Is there any option to repair the 'Mozilla Firefox' without loosing History?

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • Setting of "opening web pages from last session"not works when open next time

    In Options, setting to "open windows & tab pages from last time" does not work. I have tries several time but nothing happens. have written to you earlier also , please help

    ''setting to "open windows & tab pages from last time" does not work.''
    That would be very surprising but a change was made to Firefox 4 to always have the choice of going to History ("Alt+S") and choose "Restore previous session".
    With Firefox 5 coming out in a few days (June 21-22) you might try again then, if the solution the developers built in does not work for you. Do you know about pinning tabs ('''app-tabs''') they persist across sessions as a convenience -- if I really want to keep something permanently then I would bookmark such things as a group. Because they can be closed easily.

  • Alter System Kill Session Not Working

    I'm not certain as to what the problem may be, but the following code does not work in that the session is not being disconnected.
    The attempt is to have this trigger kill a user's logon session if the user is attempting to run a program named 'ex_oc.exe'
    I've tested the code (getting the values back to the table as expected) and it appears to be working but it doesn't execute.
    I've also tried ''ALTER SYSTEM DISCONNECT SESSION'.
    Database is 11g.
    Any ideas?
    Thanks
    CREATE OR REPLACE TRIGGER SYS.DENY_MSB_TRIGGER_UPDATEDD
    AFTER LOGON ON Database
    DECLARE
    v_programname varchar2(64);
    v_logontime date;
    v_process varchar2(24);
    v_machine varchar2(64);
    v_sid number;
    v_serialnum number;
    v_username varchar2(30);
    v_stmt2run VARCHAR2(327);
    cur INTEGER;
    ret INTEGER;
    v_string VARCHAR2(500);
    BEGIN
    SELECT PROGRAM, PROCESS, MACHINE, SID, SERIAL#, USERNAME
    INTO v_programname, v_process, v_machine, v_sid, v_serialnum, v_username
    FROM V$SESSION
    WHERE PROGRAM = LOWER('ex_oc.exe');
    INSERT INTO SAUDIT.DENYMSB (PROGRAM, PROCESS, MACHINE, SID, SERIALNUM, USERNAME)
    VALUES (v_programname, v_process, v_machine, v_sid, v_serialnum, v_username );
    v_string := 'ALTER SYSTEM KILL SESSION' || CHR(39)||v_sid||','||v_serialnum|| CHR(39)||' IMMEDIATE';
    EXECUTE IMMEDIATE v_string;
    END;
    Edited by: user12451703 on Jan 14, 2010 8:57 AM
    Edited by: user12451703 on Jan 14, 2010 8:58 AM

    user12451703 wrote:
    I'm not trying to kill my own session.
    Trigger written by Sys and running it as a generic user.You completely misunderstand triggers. Same as SP/SF trigger is always executed in invoking session on behalf of trigger owner. Below is a slighly modified version of your trigger that does not allow user U1 to connect by killing user U1 session:
    SQL> connect scott as sysdba
    Enter password: *****
    Connected.
    SQL> CREATE OR REPLACE TRIGGER SYS.DENY_MSB_TRIGGER_UPDATEDD
    2 AFTER LOGON ON Database
    3 DECLARE
    4 v_programname varchar2(64);
    5 v_logontime date;
    6 v_process varchar2(24);
    7 v_machine varchar2(64);
    8 v_sid number;
    9 v_serialnum number;
    10 v_username varchar2(30);
    11 v_stmt2run VARCHAR2(327);
    12 cur INTEGER;
    13 ret INTEGER;
    14 v_string VARCHAR2(500);
    15 BEGIN
    16 SELECT PROGRAM, PROCESS, MACHINE, SID, SERIAL#, USERNAME
    17 INTO v_programname, v_process, v_machine, v_sid, v_serialnum, v_username
    18 FROM V$SESSION where username = 'U1';
    19 EXECUTE IMMEDIATE ('ALTER SYSTEM KILL SESSION ''' || v_sid || ',' || v_serialnum || '''');
    20 EXCEPTION
    21 WHEN OTHERS THEN
    22 RAISE_APPLICATION_ERROR(-20001, 'Execution of this program not allowed', TRUE);
    23 END;
    24 /
    Trigger created.
    SQL> create user u1 identified by u1
    2 /
    User created.
    SQL> grant create session to u1
    2 /
    Grant succeeded.
    SQL> connect u1/u1
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Execution of this program not allowed
    ORA-06512: at line 20
    <font color=red size =2>ORA-00027: cannot kill current session</font>
    Warning: You are no longer connected to ORACLE.
    SQL>
    Also, user not that keen to change the name of the exe.Is cex_soc.exe client side executable? If so what prevents user from renaming it?
    SY.

  • OSX: Connecting to admin session not working anymore since 8.0.12

    Hey
    It seems to me that connecting to console session does not work anymore since the recent update to 8.0.12. Had no troubles before the update, now it does not connect to the console session but a normal one. Please fix this.
    Mac OSX 10.9.5, Apple Remote Desktop 8.0.12
    Cheers, Marcel.

    Hey Dharmesh,
    Thanks for your reply. I mixed up terms. I cannot connect to the "admin session", in my last message I used the term "console session", sorry about that. Connecting works, but it connects normally instead of the admin session. Checkbox
    "Connect to admin sesssion" is active.
    In the logs I found the following message. Not sure it's related to my problem.
    Cheers, 
    Marcel
    [2014-Dec-11 08:20:11] RDP (0): correlation id: 012580ec-dbe5-8db2-a2c0-1c58dfb00000
    [2014-Dec-11 08:20:11] RDP (0): Resolved 'replaced.host.name.com' to '1.2.3.4' using NameResolveMethod_DNS(1)
    [2014-Dec-11 08:20:11] RDP (0): Exception caught: Exception in file '../../librdp/itotlayer.cpp' at line 875
        User Message : Security negotiation Error: NotAllowed(2)
    [2014-Dec-11 08:20:11] RDP (0): correlation id: 012580ec-dbe5-8db2-a2c0-1c58dfb00000
    [2014-Dec-11 08:20:11] RDP (0): Resolved 'replaced.host.name' to '1.2.3.4' using NameResolveMethod_DNS(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2014-Dec-11 08:20:11] RDP (0): **** User ACCEPTED connection to basic security host
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolConnectingRDP(3)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolInactive(4)
    [2014-Dec-11 08:20:11] RDP (0): Protocol state changed to: ProtocolActive(5)
    [2014-Dec-11 08:20:40] RDP (0): Protocol state changed to: ProtocolInactive(4)
    [2014-Dec-11 08:20:40] RDP (0): Protocol state changed to: ProtocolActive(5)

  • JBoss cluster shared session not working always

    Hi all,
    I am using JBoss AS 4.0 for my Application, recently we need to scale the application, so we added another JBoss AS 4.0 in cluster. It is working fine with sticky session.
    But we need to share the session state so we made the changes in JBoss service .xml and the Appache for shared session, as described in the Jboss administration documentation, but the session shareing is not working always, some time it is working, suddenly the session in the clustered server gone out,
    please advice me what if i am missing, i cannot figure out
    thanks in advance

    Hello. I actually raised a support request to Microsoft about this. It seems from my testing that when using user profile disks in 2012 r2 that shared activation doesn't work. Last update this was with engineering team at MS. Will update when they have
    confirmed this is an actual bug.

  • Reopen all windows from last session - NOT WORKING

    Why will this not work?

    Greetings,
    What version of Safari are you using, and what specific version of Mac OS X? This information should be in your profile and kept up-to-date; we shouldn't have to guess.
    Try creating a new user account and test Safari to see if the problem happens there; if it does, then it's a systemwide issue. If not, it's something in your regular user account.

  • Sessions not working in Firefox, Safari and Chrome, but working in iexplore

    Hi,
    I have been running Tomcat 5.0.18 jdk 1.4. and have just upgraded to Tomcat 6.0.24 jdk 1.6..
    I have an app that you need to log on to in a jsp page. When succesfully logged in it redirects to a framed page with 3 pages in it.
    All elements of that framed page check for a valid session, if there is one, it displays itself, if not, it redirects back to the log on screen.
    This has worked fine for years in all browsers. But since upgrading, in Firefox, Safari and Chrome, when the parent framed page jsp checks for a session, its fine, it passes, but when the other sub-frame pages check for a session, it comes back as a new session, i.e. its not picking up the session that has just been validated and redirects to the login page. Iexplore still works fine. i.e. all 3 pages validate ok.
    Any ideas why these browsers are not pickng up the session?

    As a test, try putting an empty JSP in front of it that triggers the session to be created, and then redirects (with a HTTP meta refresh for example) to the frameset jsp to see if that fixes anything.
    If that fixes it, then I guess the pages load too quickly.

  • Sync session not working

    When I try to sync my phone and computer it says that the "sync session has failed to start" How can I fix this??

    I have exactly the same settings in Options (in both computers)
    for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
    It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
    Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
    so I changed 4 settings in about.config
    browser.tabs.warn on close true
    browser.warn on quit true
    browser.warn on restart true
    browser.show.quit warning true
    but the problem with sessions appeared only 1 week ago.
    So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :(

  • Gnome-sessions - not working?

    hey,
    i've migrated to gnome 2.6 and hoped that the gnome-sessions are going to work right now - but they seem not to work. did i do something wrong or is that a fact? is there any chance to get this implemented  and working? this is such a nice feature... (used to have it from KDEmod)
    thanks and cheers,
    hubutz

    bnb2235 wrote:
    triplesquarednine,
    You are correct. I looked again and there are multiple exec lines and I was reading the wrong one. The one I read from /usr/share/applications/gnome-screenshot.desktop:
    Exec=gnome-screenshot -w
    TargetEnvironment=Unity
    But for gnome:
    Exec=gnome-screenshot --interactive
    Terminal=false
    Type=Application
    Icon=applets-screenshooter
    StartupNotify=true
    Yeah, that's kinda what i figured. it threw me off at first too.
    bnb2235 wrote:Rather than xdg, you can also change the store location with dconf-editor (No Pictures dir needed)
    nice tip. i missed that one. very good to know.
    bnb2235 wrote:Personally, I like the way it is working.
    If you want it back to the way it was, it is easy. Open the system preferences. Click Keyboard. Click shortcuts tab. Click custom shortcuts. Click the plus sign. Give a name. Enter the command gnome-screenshot --interactive. Apply. Click where it says "disabled" to assign a new accelerator. Press Print Scrn key on keyboard. Accept the warning and let it reassign.
    I like they way it is too;
    press printscreen button and it takes a fullscreenshot, use ALT with printscreen and it takes a window scrrenshot. No interaction and saves images to /home/ninez/Pictures./screenshots.... then beyond that i use deepin-screenshot for more advanced functionality ~ such as saving to clipboard (to paste in gimp), or to do add notes / drawing to the screenshot before saving to disk.  ~ this kinda thing is handy for bug reporting. you can quickly hightlight an area / draw box / text, directly after taking a screenshot. very handy. (i also setup deepin-screenshot with it's own keystroke (or gesture on my machine).

  • "reopen all windows from last session" not working properly

    Sometimes I will hit a wrong tab and lose all the tabs and pages I am working on.  But when I hit "Reopen All Windows from Last Session" in History, I either get pages from months ago, or some nonsense that Apple is apparently trying to get me to buy.  All I want is my old work up.  How can I get them back quickly and easily (which is what I thought "Reopen All Windows..." was supposed to do)?

    Manual method
    Malware – Adware removal – Apple Support
    Or download this program which was written by Thomas Reed, a long time poster. The program will do the work for you which makes it easy. If you are uncertain about downloading programs, try the manual method.
    Malware Guide – AdwareMedic – 10.7 and higher

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts,
    I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using transaction launcher and button is clicked no new session or new window is being opened. Our requirement is FPL9 transaction will be opened in new session / window inside Interaction Center also.
    Please help me how to open a new session or window  in interaction center on push botton click.
    Thanks in advance.
    Regards,
    Arnab

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Custom page session not working

    Hi All,
    I have modified custom.jsp file to customize BI launchpad, where in this page I put code to display logon form and after form submission it will go to Action.jsp to validate credentials using below code.
    // If no session already exists, logon using the specified parameters.
    if (enterpriseSession == null)
      try
      // Log on to BusinessObjects Enterprise
      enterpriseSession = CrystalEnterprise.getSessionMgr().logon(strUserName,strPassword, "XXX:6400" ,strAuthType );
      defaultLogonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();
      enterpriseSession = CrystalEnterprise.getSessionMgr().logonWithToken(defaultLogonToken);
      // Store the IEnterpriseSession object in the session.
      session.setAttribute("EnterpriseSession", enterpriseSession);
      // Create the IInfoStore object.
      IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
      // Store the IInfoStore object in the session using the
      // helper functions.
      session.setAttribute("InfoStore", iStore);
      // Store the logon token for later use.
      session.setAttribute("token", defaultLogonToken);
      catch (SDKException e) {  sSuccessFailMsg = e.getMessage();
    This code is working fine and I am able to logon and go to home page, below is the issue I am facing can you please let me know how to solve this issue.
    Once I logon to BI launchpad, if I refresh web page it's redirecting me to logon page again and also in next tab if I use same URL it's asking to to enter logon details.
    Please lt me know how to use defaultlogon token to login without entering credentials.
    Thanks,
    Mani

    Hello All,
    I am able to resolve above issue by checking BO session in Custom.jsp. I think this  will be helpful for someone who is trying to do customization.
    IEnterpriseSession enterpriseSession =(IEnterpriseSession)session.getAttribute("EnterpriseSession");
    if (enterpriseSession != null)
    String defaultLogonToken= (String)session.getAttribute("token");
    response.sendRedirect ("/BOE/BI/logon/start.do?ivsLogonToken=" + defaultLogonToken);
    Thanks,
    Mani

  • Oracle Alter Session not working in CF9

    Hello,
    I'm trying to understand differences between CF5 and CF9 when I retrieve numbers and dates from an Oracle Database.
    The code I ran on CF5 and CF9 servers :
    <cfoutput>
    <cftransaction>
    <cfquery datasource="intranet">
    alter session SET NLS_TERRITORY =  FRANCE
    </cfquery>
    <cfquery name="qry" datasource="intranet">
    select
         TO_NUMBER(12345/10) as nbr,
         sysdate as dt,
         TO_CHAR(1234.56,'L99G999D99') as cur
    from dual
    </cfquery>
    </cftransaction>
    #qry.nbr#<br>
    #qry.dt#<br>
    #qry.cur#
    </cfoutput>
    I've got those outputs :
    Result in CF5
    Result in CF9
    1234,5
    01/12/09
    ¿1.234,56
    1234.5
    2009-12-01 19:16:04.0
    ¿1.234,56
    The first two rows in CF5 display data in French format. That's not the same for CF9, the data are in American format.
    Then I changed the NLS_TERRITORY parameter
    alter session SET NLS_TERRITORY =  AMERICA
    Result in CF5
    Result in CF9
    1234.5
    01-DEC-09
    $1,234.56
    1234.5
    2009-12-01 19:20:39.0
    $1,234.56
    The two first row haven't changed in CF9, it seems that the "alter session" has no effect on number and date format in query results. Is that a bug or am I misunderstanding something ?
    Regards,
    Maxime

    Thank you for your reply.
    I tried what you've suggested on the CF9 server.
    The results are :
    NLS_TERRITORY =
    1) oracle JDBC database
    2) oracle JDBC thin client
    3) oracle JDBC-ODBC bridge
    AMERICA
    1234.5
    2009-12-02 13:24:30.0
    $1,234.56
    1234.5
    {ts '2009-12-02 00:00:00'}
    $1,234.56
    1234.5
    2009-12-02 13:24:30.0
    $1,234.56
    FRANCE
    1234.5
    2009-12-02 13:29:53.0
    ¿1.234,56
    1234.5
    {ts '2009-12-02 00:00:00'}
    ¿1.234,56
    1234.5
    2009-12-02 13:29:53.0
    ¿1.234,56
    The behavior is pretty much the same in the three differents ways to call the database. The only difference is on the date display using the Oracle JDBC thin client, which is another format from those I've already got.
    Regards,
    Maxime

Maybe you are looking for

  • Can't find file for Trojan Horse on my MacBook

    Anyone seen this before? I have the Norton Antivirus Program installed on my MacBook. I believe an attack occurred while I was looking through the Apple Support Forums for help with a QuickTime problem and accidentally clicked on the following link:

  • Trying to find out when was the object last referenced?

    Hi All, Is there a way I can find out when was an object or all the objects in a schema were last referenced along with the time it was referenced (May be a standard code all_references as such)? Just want to find out if there are any dormant objects

  • The technical name is Elastic Time - the time is now

    The technical name is Elastic Time - the time is now. http://www.sonicstate.com/news/shownews.cfm?newsid=5402 This is the future of audio editing, and I sincerely hope Logic will provide this same (or superior) functionality very soon, as it is the w

  • Does the UC540 include or support a web based user portal?

    One last question because I can't find this for the life of me.  When looking at Avaya IP Office they include a web based portal that is installed on a server or on their server module for the system.  Does the UC540 include that or allow that functi

  • How to subscribe to Chinese holiday calendar

    I'm using iOS8.1 with the region format set to US. That automatically subscribes me to US holiday in the calendar. If I also want to manually subscribe to Chinese holiday calendar, what's the server address I should use to add the account in "Mail, C