DT message on login and automatic logout

Hi,
a user booted the Solaris 9 (SunBlade 150) and proceeded a normal login.
The DT Message came saying to check /etc/hosts and other files, and
did automatic logout. The /var/adm/messages entry is this:
Jul 18 15:59:26 `hostname` dtsession[688]: [ID 684647 user.error] libtt[688]: libtt: startup_ttsession("ttsession -s -d :0") failed with code -1, see syslog
No Syslog entry. The ~/.dt/startlog looks like:
--- starting desktop on /dev/pts/2
/usr/dt/bin/ttsession[444]: ttsession: Tooltalk magic cookie authentication failed due to TT_AUTHFILE_ACCESS.
See system log file (/var/adm/messages) for details.
/usr/dt/bin/ttsession[444]: child ttsession exited with status 1
/usr/dt/bin/Xsession[757]: 425 Hangup
X connection to :0.0 broken (explicit kill or server shutdown).
X connection to :0.0 broken (explicit kill or server shutdown).
It is happening only to this user. Does anyone have any idea how
to correct that?
Thanks a lot for any help ...

In the user's directory, remove .TTauthority and .Xauthority. Check that .dtprofile is degault (may want to copy it from another user). I don't remember if you have to remove .ICEauthority as well. Then have the user log back in.

Similar Messages

  • When I tried to install firefox 3.5.13, it crash and automatically logout. OS fedora 6

    I just install a fresh Fedora 6. When I tried to install firefox 3.5.13, it crashed and automatically log out.
    Thanks

    Firefox 4 doesn't run on a PowerPC Mac.
    Firefox 4 requires at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/4.0/system-requirements/
    For an unofficial Firefox 4 compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
    * http://www.floodgap.com/software/tenfourfox/
    Firefox 3.6.x (Mac OS X 10.4 and later) can be found here:
    * http://www.mozilla.com/en-US/firefox/all-older.html

  • Trying to login and automatically get logged out in AD?

    Basically what happens is an AD user *using admit mac* tries to login, it start to spin like it's going to let her in but then goes to a blue screen *non death* and then goes straight back to the login screen from that said blue screen. All other AD accounts can login just fine.
    This is the log I'm getting from a good login, starting from 2:56:33-2:56:53, and then the problem login where i get booted before i even get to my home screen starting at 2:58:20, and then a following good login to collect the log. I put spaces in where i think each login starts and begins. I have also removed my companies domain and replaced it with ***** in several places.
    5/8/12 2:56:33 PM             com.apple.DirectoryServices[15]   [0x1006a1ba0] priv_searchSync error Error Domain=LDAPErrorDomain Code=-7 UserInfo=0x1006accf0 "Bad search filter"
    5/8/12 2:56:36 PM             com.apple.DirectoryServices[15]   [0x10067d4c0] priv_searchSync error Error Domain=LDAPErrorDomain Code=-7 UserInfo=0x10069b8b0 "Bad search filter"
    5/8/12 2:56:38 PM             edu.mit.Kerberos.CCacheServer[221]          launchctl start error: No such process
    5/8/12 2:56:44 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[Replicator(GroupPolicy) infArrayFromInfData:]: '=' but no assignment?
    5/8/12 2:56:44 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={DEC02046-73EB-4A18-8539-4E45787D6C8F},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x40a4e0 "Referral"
    5/8/12 2:56:44 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={CF494306-C9C6-4349-B2BA-707E745C19EC},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x40a510 "Referral"
    5/8/12 2:56:44 PM             com.apple.launchctl.Aqua[1125]   launchctl: Please convert the following to launchd: /etc/mach_init_per_user.d/com.adobe.versioncueCS4.monitor.plist
    5/8/12 2:56:44 PM             com.apple.launchd.peruser.7589[219]        (com.apple.ReportCrash) Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
    5/8/12 2:56:45 PM             com.apple.launchd.peruser.7589[219]        (com.apple.Kerberos.renew.plist[1144]) Exited with exit code: 1
    5/8/12 2:56:45 PM             FlipShareAutoRun[1148]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:56:45 PM             FlipShareAutoRun[1148]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:56:45 PM             FlipShareAutoRun[1148]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:56:45 PM             FlipShareAutoRun[1148]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:56:45 PM             FlipShareAutoRun[1148]   Incompatible applications: app=com.flipvideo.FlipShareAutoRun, targetApp=com.apple.Safari
    5/8/12 2:56:45 PM             com.apple.launchd.peruser.7589[219]        (com.apple.Kerberos.renew.plist) Throttling respawn: Will start in 600 seconds
    5/8/12 2:56:45 PM             tss_check_cifs[1147]         Incompatible applications: app=com.thursby.tss_check_cifs, targetApp=com.apple.Safari
    5/8/12 2:56:45 PM             com.apple.launchd.peruser.7589[219]        (0x100204170.mach_init.VersionCueCS4monitor) Failed to check-in!
    5/8/12 2:56:46 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[Replicator(GroupPolicy) infArrayFromInfData:]: '=' but no assignment?
    5/8/12 2:56:46 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={DEC02046-73EB-4A18-8539-4E45787D6C8F},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x473b70 "Referral"
    5/8/12 2:56:46 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={CF494306-C9C6-4349-B2BA-707E745C19EC},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x45cd70 "Referral"
    5/8/12 2:56:46 PM             com.apple.DirectoryServices[15]   [0x100684dd0] priv_searchSync error Error Domain=LDAPErrorDomain Code=-7 UserInfo=0x1006846f0 "Bad search filter"
    5/8/12 2:56:52 PM             com.apple.launchd.peruser.7589[219]        (com.apple.AirPortBaseStationAgent[1146]) Exited: Killed
    5/8/12 2:56:52 PM             com.apple.UserEventAgent-Aqua[1138]     Tue May 8 14:56:52 pdmchi1p06953.local UserEventAgent[1138] <Warning>: CGSShutdownServerConnections: Detaching application from window server
    5/8/12 2:56:52 PM             com.apple.UserEventAgent-Aqua[1138]     Tue May 8 14:56:52 pdmchi1p06953.local UserEventAgent[1138] <Warning>: CGSDisplayServerShutdown: Detaching display subsystem from window server
    5/8/12 2:56:52 PM             com.apple.loginwindow[1019]       Tue May 8 14:56:52 pdmchi1p06953.local loginwindow[1019] <Warning>: CGSShutdownServerConnections: Detaching application from window server
    5/8/12 2:56:52 PM             com.apple.ScreenSharing.server[1141]       Tue May 8 14:56:52 pdmchi1p06953.local AppleVNCServer[1141] <Warning>: CGSShutdownServerConnections: Detaching application from window server
    5/8/12 2:56:52 PM             com.apple.ScreenSharing.server[1141]       Tue May 8 14:56:52 pdmchi1p06953.local AppleVNCServer[1141] <Warning>: CGSDisplayServerShutdown: Detaching display subsystem from window server
    5/8/12 2:56:52 PM             com.apple.loginwindow[1019]       Tue May 8 14:56:52 pdmchi1p06953.local loginwindow[1019] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    5/8/12 2:56:52 PM             com.apple.loginwindow[1019]       Tue May 8 14:56:52 pdmchi1p06953.local loginwindow[1019] <Warning>: CGSDisplayServerShutdown: Detaching display subsystem from window server
    5/8/12 2:56:52 PM             com.apple.launchd.peruser.7589[219]        (com.apple.quicklook) Bug: launchd_core_logic.c:6183 (24498):0
    5/8/12 2:56:52 PM             com.apple.launchd.peruser.7589[219]        Background: Bug: launchd_core_logic.c:6298 (24498):0
    5/8/12 2:56:52 PM             com.apple.launchd.peruser.7589[219]        Bug: launchd_runtime.c:908 (24003):0: job_ack_port_destruction(rights)
    5/8/12 2:56:53 PM             com.apple.WindowServer[1176]    Tue May 8 14:56:53 pdmchi1p06953.local WindowServer[1176] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    5/8/12 2:58:20 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:20.612 ReportCrash[1199:2b03] Saved crash report for lsregister[1198] version ??? (???) to /Library/Logs/DiagnosticReports/lsregister_2012-05-08-145820_localhost.crash
    5/8/12 2:58:20 PM             com.apple.launchd[1]       (0x100104a80.mach_init.mdworker[1197]) Job appears to have crashed: Segmentation fault
    5/8/12 2:58:20 PM             com.apple.launchd[1]       (0x100104a80.mach_init.mdworker) Failed to check-in!
    5/8/12 2:58:20 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:20.702 ReportCrash[1199:1407] Saved crash report for mdworker[1197] version ??? (???) to /Library/Logs/DiagnosticReports/mdworker_2012-05-08-145820_localhost.crash
    5/8/12 2:58:20 PM             com.apple.DirectoryServices[15]   [0x100699db0] maxPasswordAge maxPwdAgeStr not found
    5/8/12 2:58:20 PM             com.apple.DirectoryServices[15]   [0x100699db0] priv_searchSync error Error Domain=LDAPErrorDomain Code=-7 UserInfo=0x1006aaf00 "Bad search filter"
    5/8/12 2:58:23 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[Replicator(GroupPolicy) infArrayFromInfData:]: '=' but no assignment?
    5/8/12 2:58:23 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={DEC02046-73EB-4A18-8539-4E45787D6C8F},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x449e40 "Referral"
    5/8/12 2:58:23 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={CF494306-C9C6-4349-B2BA-707E745C19EC},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x439a50 "Referral"
    5/8/12 2:58:25 PM             com.apple.launchd[1]       (com.apple.loginwindow[1175]) Job appears to have crashed: Segmentation fault
    5/8/12 2:58:26 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:26.213 ReportCrash[1199:3593] Saved crash report for Dock[1211] version ??? (???) to /Library/Logs/DiagnosticReports/Dock_2012-05-08-145826_localhost.crash
    5/8/12 2:58:26 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:26.219 ReportCrash[1199:4407] Saved crash report for loginwindow[1175] version ??? (???) to /Library/Logs/DiagnosticReports/loginwindow_2012-05-08-145826_localhost.crash
    5/8/12 2:58:26 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:26.227 ReportCrash[1199:420f] Saved crash report for Finder[1213] version ??? (???) to /Library/Logs/DiagnosticReports/Finder_2012-05-08-145826_localhost.crash
    5/8/12 2:58:26 PM             com.apple.ReportCrash.Root[1199]             2012-05-08 14:58:26.234 ReportCrash[1199:3003] Saved crash report for SystemUIServer[1212] version ??? (???) to /Library/Logs/DiagnosticReports/SystemUIServer_2012-05-08-145826_localhost.cras h
    5/8/12 2:58:27 PM             com.apple.WindowServer[1217]    Tue May 8 14:58:27 pdmchi1p06953.local WindowServer[1217] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    5/8/12 2:58:37 PM             com.apple.DirectoryServices[15]   [0x10068b380] priv_searchSync error Error Domain=LDAPErrorDomain Code=-7 UserInfo=0x100646640 "Bad search filter"
    5/8/12 2:58:38 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[Replicator(GroupPolicy) infArrayFromInfData:]: '=' but no assignment?
    5/8/12 2:58:38 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={DEC02046-73EB-4A18-8539-4E45787D6C8F},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x47fc50 "Referral"
    5/8/12 2:58:38 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={CF494306-C9C6-4349-B2BA-707E745C19EC},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x47fc80 "Referral"
    5/8/12 2:58:39 PM             edu.mit.Kerberos.CCacheServer[221]          launchctl start error: No such process
    5/8/12 2:58:42 PM             com.apple.launchctl.Aqua[1249]   launchctl: Please convert the following to launchd: /etc/mach_init_per_user.d/com.adobe.versioncueCS4.monitor.plist
    5/8/12 2:58:42 PM             com.apple.launchd.peruser.7589[219]        (com.apple.ReportCrash) Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
    5/8/12 2:58:43 PM             com.apple.launchd.peruser.7589[219]        (com.apple.Kerberos.renew.plist[1267]) Exited with exit code: 1
    5/8/12 2:58:43 PM             FlipShareAutoRun[1271]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:58:43 PM             FlipShareAutoRun[1271]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:58:43 PM             FlipShareAutoRun[1271]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:58:43 PM             FlipShareAutoRun[1271]   Could not connect the action buttonPressed: to target of class NSApplication
    5/8/12 2:58:43 PM             FlipShareAutoRun[1271]   Incompatible applications: app=com.flipvideo.FlipShareAutoRun, targetApp=com.apple.Safari
    5/8/12 2:58:43 PM             com.apple.launchd.peruser.7589[219]        (com.apple.Kerberos.renew.plist) Throttling respawn: Will start in 600 seconds
    5/8/12 2:58:43 PM             tss_check_cifs[1270]         Incompatible applications: app=com.thursby.tss_check_cifs, targetApp=com.apple.Safari
    5/8/12 2:58:43 PM             com.apple.launchd.peruser.7589[219]        (0x100204170.mach_init.VersionCueCS4monitor) Failed to check-in!
    5/8/12 2:58:43 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[Replicator(GroupPolicy) infArrayFromInfData:]: '=' but no assignment?
    5/8/12 2:58:43 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={DEC02046-73EB-4A18-8539-4E45787D6C8F},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x4930e0 "Referral"
    5/8/12 2:58:43 PM             com.thursby.TSSRegistryStore[50]                WARN [0x20aa00] -[LDAPKerbConnection(LDAPKerbConnectionGroupPolicyExtensions) groupPolicyEntriesAtDN:]: entryAtDN failed for gPLinkDN 'cn={CF494306-C9C6-4349-B2BA-707E745C19EC},cn=policies,cn=system,DC=*****,DC=** ***,DC=net', error=Error Domain=LDAPErrorDomain Code=10 UserInfo=0x4a8060 "Referral"

    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html
    or
    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • How can I use screen lock and auto-logout together?

    I'm managing a network of Macbook Pros at an elementary school and would like to use both the screen lock and automatic logout features together, but this does not seem to work for some reason.
    What I would like to happen:
    After 5 minutes: locked screen
    After 30 minutes: automatically logged out
    The automatic logout works when I don't have locked screen enabled, but once I turn on locked screen, the account never gets logged out. It does work if I only enable the screen saver to appear after 5 minutes. The computer isn't going to sleep so I'm not sure what is preventing the automatic logout.
    Any ideas on how to resolve this issue?

    You can use LabVIEWs UDP functions to communicate with SNMP devices. The tedious part is converting the MIB information into the required hex message.
    There is also a problem in using the UDP functions on port 161 (default SNMP port) if the Windows SNMP services is running.

  • Switch login form to logout form once logged in...

    Hi i am working with dreamweaver cs5.5 and i am making php pages so users can login. I do not know how to replace the login form with a logout form once logged in. Can anyone help please, i will be very greatfull.

    This is the code im using for the forms, so far the forms are on defferent pages ( because and can't get the if/else to work ), when i use the code in this link "http://www.plus2net.com/php_tutorial/php_login_logout.php
    " i add the code to one page but it just doesnt work...
    This is on the page i want to use as the main template. Do i need more files for this to work?
    <div id="header">
        <table width="100%" cellpadding="5">
          <tr>
            <td width="1022"><table>
              <tr>
                <td class="tablebg">Gamers</td>
              </tr>
            </table></td>
            <td width="300" rowspan="2" align="right" nowrap="nowrap">
    <?
    if(isset($session[MM_Username])){  // Member is logged in so we have to display welcome message with userid and one logout link
    echo "
    <form id="form1" name="form1" method="post" action="">
              <p> Welcome <?php echo $_SESSION['MM_Username']; ?>! <a href="<?php echo $logoutAction ?>">
                <input type="button" name="log out" id="submit" value="Log Out!" /></a> </p>
    </form>";
    }else {  // Member has not logged in so we can display the login form allowing member to login with user id and password
    echo "<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
              <p>
                <label for="username">Username/E-Mail</label>
                <input type="text" name="username" id="username" />
              </p>
              <p>
                <label for="password">Password</label>
                <input type="text" name="password" id="password" />
              </p>
              <p>
                <a href="../register.php"><input type="button" name="register" id="register" value="Register Now!" /></a>
                <input type="submit" name="submit" id="submit" value="Login!" />
              </p>
            </form>";
    }    // End of else condtiion echo "</table>";  (i dont get this </table> tage here)
    ?>
    </td>
          </tr>
          <tr>
            <td><ul id="MainNav" class="MenuBarHorizontal">
              <li><a href="../home.php">Home</a></li>
              <li><a href="#">Forum</a></li>
              <li><a href="#" class="MenuBarItemSubmenu">Games</a>
                <ul>
                  <li><a href="#">C.O.D</a></li>
                  <li><a href="#">CounterStrike</a></li>
                  <li><a href="#">Planetside</a></li>
                </ul>
              </li>
              <li><a href="#">Members</a></li>
              <li><a href="#">Contact</a></li>
              <li><a href="../about.php">About</a></li>
            </ul></td>
          </tr>
        </table>
      </div>
    Sorry, i am new to this.

  • Calculating Login and Logout Times - need help

    Hi everyone. I have the first part of this code and can't seem to figure out the time calculation part. What it is - create a code that asks for a user name or social security number, then the person enters up to 6 login and logout times for the day. They also have the option to enter personal time or sick time (neither of which can be over 8 hours). I have all of that complete, but I can't figure out how to get the in and out times and the leave times to calculate. I have 3 pieces of code - here they are:
    Hours:
    import java.util.*;
    public class Hours
         //define states of Hours
         int regularhoursInt = 0;
         int regularminutesInt = 0;
         int overtimehoursInt = 0;
         int overtimeminutesInt = 0;          
         //set hours worked
         public void setHours(int timein, int timeout)
              int temphoursin = timein/100;
              int tempminutesin = timein - timein/100;
              int temphoursout = timeout/100;
              int tempminutesout = timeout - timeout/100;
              GregorianCalendar time1 = new GregorianCalendar(2003, 8, 1, temphoursin, tempminutesin, 0);
              GregorianCalendar time2 = new GregorianCalendar(2003, 8, 1, temphoursout, tempminutesout, 0);
              //store to date
              Date d1 = time1.getTime();
              Date d2 = time2.getTime();
              //store time to long
              long t1 = d1.getTime();
              long t2 = d2.getTime();
              //subtract and convert to seconds
              long time = (t2 - t1)/1000;
              long tempregularLong = 0;
              long tempovertimeLong = 0;
              //see if regular hours are over 8 hours (28800 seconds)
              tempregularLong = time;
              if (tempregularLong > 28800)
                   tempovertimeLong = tempregularLong - 28800;
                   tempregularLong = tempregularLong - tempovertimeLong;
              //convert to hours and minutes
              regularhoursInt = regularhoursInt + (Integer.parseInt(Long.toString(tempregularLong)) / 3600);
              regularminutesInt = regularminutesInt + (Integer.parseInt(Long.toString(tempregularLong)) / (3600 * regularhoursInt));
              overtimehoursInt = overtimehoursInt + (Integer.parseInt(Long.toString(tempovertimeLong)) / 3600);
              overtimeminutesInt = overtimeminutesInt + (Integer.parseInt(Long.toString(tempovertimeLong)) / (3600 * regularhoursInt));     }
         // get regular hours worked
         public int getRegularHours()
              return regularhoursInt;
         // get regular minutes worked
         public int getRegularMinutes()
              return regularminutesInt;
         //get overtime hours worked
         public int getOvertimeHours()
              return overtimehoursInt;
         // get overtime minutes worked
         public int getOvertimeMinutes()
              return overtimeminutesInt;
    Employee:
    public class Employee
         //define states of employee
         String nameString = "";
         String ssnString = "";
         double payrateDouble = 0;
         double hoursworkedDouble = 0;
         double overtimehoursDouble = 0;
         double sickleaveDouble = 0;
         double personalleaveDouble = 0;
         double totalpayDouble = 0;
         //set and get employee name
         public void setName(String name)
              nameString = name;
         public String getName()
              return nameString;
         //set and get employee ssn
         public void setSsn(String ssn)
              ssnString = ssn;
         public String getSsn()
              return ssnString;
         //set and get employee payrate
         public void setPayRate(double payrate)
              payrateDouble = payrate;
         public double getPayRate()
              return payrateDouble;
         //set and get employee hours worked
         public void setHoursWorked(double hoursworked)
              hoursworkedDouble = hoursworked;
         public double getHoursWorked()
              return hoursworkedDouble;
         //set and get employee overtimehours
         public void setOverTime(double overtime)
              overtimehoursDouble = overtime;
         public double getOverTime()
              return overtimehoursDouble;
         //set and get employee sick leave hours
         public void setSickLeave(double sickleave)
              sickleaveDouble = sickleave;
         public double getSickLeave()
              return sickleaveDouble;
         //set and get employee sick leave hours
         public void setPersonalLeave(double personalleave)
              personalleaveDouble = personalleave;
         public double getPersonalLeave()
              return personalleaveDouble;
         //get employees total pay
         public double getTotalPay()
              //calculate regular pay
              totalpayDouble = payrateDouble * hoursworkedDouble;
              //add in any over time pay
              totalpayDouble = totalpayDouble + payrateDouble * 1.5 * overtimehoursDouble;
              //add in any sick time pay
              totalpayDouble = totalpayDouble + payrateDouble * sickleaveDouble;
              //add in any personal leave time pay
              totalpayDouble = totalpayDouble + payrateDouble * personalleaveDouble;
              return totalpayDouble;
    Entry Screen:
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import javax.swing.*;
    import java.util.*;
    import java.text.*;
    //create entryscreen class as a java applet
    public class EntryScreen extends Applet implements ActionListener
         //declare all variables, labels, textfields, and buttons
    //store pay rate to variable payrateDouble
         double payrateDouble = 10.00;
         //store ssn and names to ssnString
         String[][] ssnString ={{"123121234", "234232345", "345343456", "456454567",
              "567565678", "678676789"},{"Jane Doe", "John Doe", "Sam Smith", "Tom Thumb", "Sara Jane", "Cindy Thompson"}};
         //set date format to MM/dd/yy and store in variable formatter
         SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yy");
         //store current date to variable date
         Date date = new Date();
         //using variable formatter store current date to dateString
         String dateString = formatter.format(date);
         //declare all label, Textfields and buttons use in the applet
         JLabel titleLabel;
    JLabel dateLabel;
    JTextField dateTextField;
    JLabel ssnLabel;
    JTextField ssnTextField;
    JLabel timeLabel;
    JLabel inLabel;
    JLabel outLabel;
    JTextField in1TextField;
    JTextField in2TextField;
    JTextField in3TextField;
         JTextField in4TextField;
         JTextField in5TextField;
    JTextField in6TextField;
    JTextField out1TextField;
    JTextField out2TextField;
    JTextField out3TextField;
    JTextField out4TextField;
    JTextField out5TextField;
    JTextField out6TextField;
    JLabel sickLabel;
    JTextField sickTextField;
    JTextField personalTextField;
    JLabel personalLabel;
    JButton okButton;
    JButton clearButton;
    JLabel day1Label;
    JLabel day2Label;
    JLabel day3Label;
    JLabel day4Label;
    JLabel day5Label;
    JLabel day6Label;
         //initialize the applet screen
    public void init()
              //create a custom layout object based on the EntryScreenLayout class
              EntryScreenLayout customLayout = new EntryScreenLayout();
              //set the font for the screen
    setFont(new Font("Helvetica", Font.PLAIN, 12));
    setLayout(customLayout);
         //populate the applet with the labels, textfields, and buttons
              titleLabel = new JLabel("Employee Payroll System");
    add(titleLabel);
    dateLabel = new JLabel("Date (MM/DD/YY):");
    add(dateLabel);
    dateTextField = new JTextField("");
    add(dateTextField);
              //set text in field to current date
              dateTextField.setText(dateString);
    ssnLabel = new JLabel("SSN (Numbers Only):");
    add(ssnLabel);
    ssnTextField = new JTextField("");
    add(ssnTextField);
    timeLabel = new JLabel("Hours Worked (hhmm)");
    add(timeLabel);
    inLabel = new JLabel("In:");
    add(inLabel);
    outLabel = new JLabel("Out");
    add(outLabel);
    in1TextField = new JTextField("");
    add(in1TextField);
    in2TextField = new JTextField("");
    add(in2TextField);
    in3TextField = new JTextField("");
    add(in3TextField);
    in4TextField = new JTextField("");
    add(in4TextField);
    in5TextField = new JTextField("");
    add(in5TextField);
    in6TextField = new JTextField("");
    add(in6TextField);
    out1TextField = new JTextField("");
    add(out1TextField);
    out2TextField = new JTextField("");
    add(out2TextField);
    out3TextField = new JTextField("");
    add(out3TextField);
    out4TextField = new JTextField("");
    add(out4TextField);
    out5TextField = new JTextField("");
    add(out5TextField);
    out6TextField = new JTextField("");
    add(out6TextField);
    sickLabel = new JLabel("Sick Leave Used:");
    add(sickLabel);
    sickTextField = new JTextField("");
    add(sickTextField);
    personalTextField = new JTextField("");
    add(personalTextField);
    personalLabel = new JLabel("Personal Leave Used:");
    add(personalLabel);
         okButton = new JButton("Ok");
         add(okButton);
              okButton.addActionListener(this);
         clearButton = new JButton("Clear");
         add(clearButton);
              clearButton.addActionListener(this);
         day1Label = new JLabel("Day 1:");
         add(day1Label);
         day2Label = new JLabel("Day 2:");
         add(day2Label);
    day3Label = new JLabel("Day 3:");
    add(day3Label);
    day4Label = new JLabel("Day 4:");
    add(day4Label);
    day5Label = new JLabel("Day 5:");
    add(day5Label);
    day6Label = new JLabel("Day 6:");
              add(day6Label);
              //set the size of the applet window as listed in the EntryScreenLayout class
              setSize(getPreferredSize());
         public void actionPerformed(ActionEvent e)
              //get the source object
              Object source = e.getSource();
              //perform if OK button was presses      
              if(source == okButton)
                   int[][] inouttimes = new int[1][5];
                   boolean matchBoolean = false;
                   boolean timeError = false;
                   int locationInt = 0;
                   double[] leavehours = new double[1];
                   String messageString = "";
                   //get the text from the ssnTextField and store to inputString
                   String inputString = ssnTextField.getText();
                   //check to see if inputString matches ssnString array
                   for(int i = 0; i < 6; ++i)
                        //if a match assign variables
                        if (inputString.equals(ssnString[0]))
                             matchBoolean = true;
                             locationInt = i;
                             break;
                        //if not a match
                        else
                             matchBoolean = false;
                   }//end for i
                   //if a SSN match is true than display the name, SSN, total hours, overtime hours, and total pay for hours worked.
                   if (matchBoolean == true)
                        //get the check in/out times, if blank assign a zero
                        Employee temp = new Employee();
                        temp.setName(ssnString[1][locationInt]);
                        temp.setSsn(ssnString[0][locationInt]);
                        temp.setPayRate(payrateDouble);
                        temp.setSickLeave(Double.parseDouble(sickTextField.getText()));
                        temp.setPersonalLeave(Double.parseDouble(personalTextField.getText()));
                        /*inouttimes[0][0] = Integer.parseInt(in1TextField.getText());
                        inouttimes[1][0] = Integer.parseInt(out1TextField.getText();
                        inouttimes[0][1] = Integer.parseInt(in2TextField.getText();
                        inouttimes[1][1] = Integer.parseInt(out2TextField.getText();
                        inouttimes[0][2] = Integer.parseInt(in3TextField.getText();
                        inouttimes[1][2] = Integer.parseInt(out3TextField.getText();
                        inouttimes[0][3] = Integer.parseInt(in4TextField.getText();
                        inouttimes[1][3] = out4TextField.getText();
                        inouttimes[0][4] = in5TextField.getText();
                        inouttimes[1][4] = out5TextField.getText();
                        inouttimes[0][5] = in6TextField.getText();
                        inouttimes[1][5] = out6TextField.getText();
                        for (int x = 0; x < 2; ++x)
                             for (int y = 0; y < 2; ++y)
                                  String temp = String.valueOf(inouttimes[x][y]);
                                  if (temp.equals(""))
                                       inouttimes[x][y] = 0;
                                  if (inouttimes[x][y] < 0 && inouttimes[x][y] > 2400)
                                       timeError = true;          
                                       break;
                             if (timeError = true)
                                  break;
                        messageString = temp.getName() + "\n" + temp.getSsn() + "\n" + temp.getTotalPay();
                   JOptionPane.showMessageDialog(null, messageString);
                   }//if (matchBoolean == true)
                   //if SSN match is false then display error message
                   else
                        JOptionPane.showMessageDialog(null, "There is no listing under that Social Security Number.\n" +
                             "Please verify and re-enter.");                    
              }//end if(source == okButton)
              //perform if the Clear button was pressed
              if(source == clearButton)
                   //clear all the textfields
                   dateTextField.setText("");
                   ssnTextField.setText("");
                   in1TextField.setText("");
                   out1TextField.setText("");
                   in2TextField.setText("");
                   out2TextField.setText("");
                   in3TextField.setText("");
                   out3TextField.setText("");
                   in4TextField.setText("");
                   out4TextField.setText("");
                   in5TextField.setText("");
                   out5TextField.setText("");
                   in6TextField.setText("");
                   out6TextField.setText("");
                   sickTextField.setText("");
                   personalTextField.setText("");
                   //set text in field to current date
                   dateTextField.setText(dateString);
         public static void main(String args[])
              //create new entryscreen object called applet
              EntryScreen applet = new EntryScreen();
         //create new frame for applet called window
              Frame window = new Frame("EntryScreen");
         window.addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                   //close the applet           
                        System.exit(0);
              //initiate the applet
              applet.init();
    window.add("Center", applet);
    window.pack();
    window.setVisible(true);
    //create entryscreenlayout custom class to position controls on applet screen
    class EntryScreenLayout implements LayoutManager {
    public EntryScreenLayout() {
    public void addLayoutComponent(String name, Component comp) {
    public void removeLayoutComponent(Component comp) {
    public Dimension preferredLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    Insets insets = parent.getInsets();
    dim.width = 360 + insets.left + insets.right;
    dim.height = 487 + insets.top + insets.bottom;
    return dim;
    public Dimension minimumLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    return dim;
    public void layoutContainer(Container parent) {
    Insets insets = parent.getInsets();
    Component c;
    c = parent.getComponent(0);
    if (c.isVisible()) {c.setBounds(insets.left+88,insets.top+8,192,24);}
    c = parent.getComponent(1);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+48,152,24);}
    c = parent.getComponent(2);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+48,152,24);}
    c = parent.getComponent(3);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+80,152,24);}
    c = parent.getComponent(4);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+80,152,24);}
    c = parent.getComponent(5);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+112,152,24);}
    c = parent.getComponent(6);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+144,72,24);}
    c = parent.getComponent(7);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+144,72,24);}
    c = parent.getComponent(8);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+176,72,24);}
    c = parent.getComponent(9);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+208,72,24);}
    c = parent.getComponent(10);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+240,72,24);}
    c = parent.getComponent(11);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+272,72,24);}
    c = parent.getComponent(12);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+304,72,24);}
    c = parent.getComponent(13);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+336,72,24);}
    c = parent.getComponent(14);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+176,72,24);}
    c = parent.getComponent(15);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+208,72,24);}
    c = parent.getComponent(16);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+240,72,24);}
    c = parent.getComponent(17);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+272,72,24);}
    c = parent.getComponent(18);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+304,72,24);}
    c = parent.getComponent(19);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+336,72,24);}
    c = parent.getComponent(20);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+368,152,24);}
    c = parent.getComponent(21);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+368,72,24);}
    c = parent.getComponent(22);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+400,72,24);}
    c = parent.getComponent(23);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+400,152,24);}
    c = parent.getComponent(24);
    if (c.isVisible()) {c.setBounds(insets.left+104,insets.top+440,72,24);}
    c = parent.getComponent(25);
    if (c.isVisible()) {c.setBounds(insets.left+184,insets.top+440,72,24);}
    c = parent.getComponent(26);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+176,72,24);}
    c = parent.getComponent(27);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+208,72,24);}
    c = parent.getComponent(28);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+240,72,24);}
    c = parent.getComponent(29);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+272,72,24);}
    c = parent.getComponent(30);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+304,72,24);}
    c = parent.getComponent(31);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+336,72,24);}
    I know it is a lot of code, but I am just starting and couldn't think of an easier way to do this.
    Thank you for any help - it is greatly appreciated. You can email me with any code help - [email protected].
    Steph

    My 2 cents, I dunno what it'll be worth.
    I think you should never convert anything until the final moment that you are at actually getting the int or float number of hours.
    Why are you doing all this Gregorian and conversion gymnastics throughout your calculations?
    To get the current time in milliseconds, use either
    java.util.Date d = new java.util.Date();
    or
    long d = System.currentTimeMillis();
    Use this long number for all your calculations, and only at the end convert it. To convert, you can use java.text.SimpleDateFormat, which I find very straightforward to use. I honestly think you should never convert your dates before doing any calculations, only after doing them, otherwise you'll loose precision and make errors for sure.

  • Report for login and logout time

    Dear All,
    Please can some one help me urgently.
    I have to find out users login and logout time over the last six months. I need to find out how many hours per user are being used.  What report do I need to run to find out ?

    Hi,
    Check the system log saved in your system.Normally the basis admin woulfd know better about this .Only they have the access and maintance for it.
    Anyways u can try out some other ways also
    Profile parameters rslg/local/file
    /usr/sap/<SID>/D20/log/SLOG<SAP-instance_number> Specifies the location of the local log on the application server.
    Alternatively try to  table - SYST
    Note:  there are many transaction codes that can be accessed only by super users .do tell me if u have one so that i can give you?

  • Session Login and Logout in jsp page

    hi
    i am developing jsp page
    i completed except logout.jsp page
    my login page is in Jsp format and then business Logic in servlet and then get method & set method in bean.java
    i have login and then it sucess page there i have singout button
    if i sign out it should go to login page
    how to do
    how to make session invalidate
    how to get session id
    i have one more doubt i should check session invalidate each jsp page
    regarding session login and logout in jsp
    if anybody knows please give me a piece of code regarding login and logout
    Regards
    Akshatha

    This is part of your filter class now you need login.jsp page
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="Stylesheet" type="text/css" href="/PAS/css/site.css"/>
        <title>Automation System | Login Page</title>
    </head>
    <body>
    <div align="center">
        <h1>Photint Automation System</h1>
    </div>
    <br/><br/><br/>
    <center>
        <table border="1" cellpadding="0" cellspacing="0" width="40%" bgcolor="FFFFFFFF">
            <thead>
                <tr>
                    <th align="left" height="30"> <h3>    Login</h3></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <div align="center">
                            <form name="LOGIN" action="/PAS/LoginServlet" method="POST">
                                <table border="0">
                                    <tbody>
                                        <tr>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                            <td height="15"></td>
                                        </tr>
                                        <tr>
                                            <td height="30"></td>
                                            <td align="right" height="30">User Name : </td>
                                            <td align="left"  height="30"><input type="text" name="USERNAME" value="" size="35"  /></td>
                                            <td height="30"></td>
                                        </tr>
                                        <tr>
                                            <td height="30"></td>
                                            <td align="right" height="30">Password : </td>
                                            <td align="left"  height="30"><input type="password" name="PASSWORD" value="" size="35"  /></td>
                                            <td height="30"></td>
                                        </tr>
                                        <tr>
                                            <td height="50"></td>
                                            <td height="50"></td>
                                            <td align="center" height="50"><input type="submit" value="Login" name="Login" />  <input type="reset" value="Reset" name="Reset" /></td>
                                            <td height="50"></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </center>
    <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
    <br/><br/><br/>
    <center>Copyright &copy; 2009 Photint FZ LLC</center>
    <center>Powered by Ali Jamali</center>
    <center>Version : 1.0</center>
    </body>
    </html>And you need loginServlet.java
    package com.ali.util.filter;
    import com.ali.entity.user.UserEntity;
    import com.ali.util.HibernateUtil;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class LoginServlet extends HttpServlet {
        private static final long serialVersionUID = 1L;
        protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            String username = request.getParameter("USERNAME");
            String password = request.getParameter("PASSWORD");
            if (username == null || username.length() == 0) {
                System.err.println(" Username textfeild is empty ..... !");
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            if (UserRegistry.isUserLoggedIn(username)) {
                System.out.printf("User [%s] is already logged in. \n", username);
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            UserEntity user = null;
            try {
                user = (UserEntity) HibernateUtil.load(UserEntity.class, username);
                if (user == null || !user.getPassword().equals(password)) {
                    RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                    dispatcher.forward(request, response);
                    System.err.println(" Password or username is not valid ..... !");
                    return;
            } catch (Exception e) {
                e.printStackTrace();
                RequestDispatcher dispatcher = request.getRequestDispatcher("Pages/user/LogIn.jsp");
                dispatcher.forward(request, response);
                return;
            HttpSession session = request.getSession();
            System.err.println(request.getRemoteAddr());
            session.setAttribute("username", user.getFirstName());
            session.setAttribute("userType", user.isAdmin());
            UserRegistry.logInUser(username);
            response.sendRedirect("/PAS/index.jsp");
    }finally is you need to just one user can be online at time or need to know how many user & who is online you should at this class also
    package com.ali.util.filter;
    import java.util.ArrayList;
    import java.util.List;
    public class UserRegistry {
        private static final List loggedInUsers = new ArrayList();
        public static void logInUser(String username) {
            loggedInUsers.add(username);
        public static void logoutUser(String username) {
            if (isUserLoggedIn(username)) {
                loggedInUsers.remove(username);
        public static boolean isUserLoggedIn(String username) {
            return loggedInUsers.contains(username);
    }If you have any more Q. or any comment , Most welcome
    Thanks
    Ali Jamali

  • How to make a login and logout in jsf  2.0 ?

    Hello all, i am developing an web application have login and logout component. I want to check whenever end user try to open admin/index.xhtml, it will be redirected to login.xhtml. And when end user click on log out button, i will be destroy session and redirect end user to login.xhtml. But i am not sure about session in JSF 2.0. I am using netbean 6.9.1 to develop. First time, when i run my web application, i can get session back. But another time, i can't get session in my bean. Do i can use filter with JSF 2.0 to make a validate login user ? And any suggestion for my issue ? Thanks in advance!
    Here is my filter with doFilter method:
    RequestWrapper wrappedRequest = new RequestWrapper((HttpServletRequest) request);
    ResponseWrapper wrappedResponse = new ResponseWrapper((HttpServletResponse) response);
    if (wrappedRequest.getSession().getAttribute("isValidUser") != null) {
    chain.doFilter(request, response);
    } else {
    goPage(wrappedRequest, wrappedResponse, "/faces/enduser/index.xhtml");
    And here is my bean with login and log out method:
    public String validUser() {
    try {
    if (iAccBO != null) {
    Utilities utilities = new Utilities();
    Account account = new Account();
    account.setAccName(getAccName());
    account.setPassword(utilities.encode(getPassword()));
    if (iAccBO.validUser(account)) {
    setAccName("");
    setPassword("");
    return "/admin/index";
    } else {
    FacesContext fc = FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "invalid username or password", ""));
    return "login";
    } catch (Exception ex) {
    ex.printStackTrace();
    Logger.getLogger(AccountBean.class.getName()).log(Level.SEVERE, null, ex);
    return null;
    public String Logout() {
    try {
    servletRequest.getSession().invalidate();
    return "../login";
    } catch (Exception e) {
    e.printStackTrace();
    return "";
    Best Regards,
    Coy.

    I looked up it but it seem not work with me. Almost example which i found is run on Glass Fish. But I am running on TomCat server of Netbeans 6.9.1. Can someone give me another suggestion ?
    Thanks in advance!
    Best Regards,
    Coy.

  • IPhone, Gmail and automatic message deletion

    I set up my Gmail account on my iPhone 4S. It does some weird things like downloading 500 spam messages to my phone automatically, which I really don't need. But my main question is that when I delete a message on my phone from the Gmail account, it also deletes it from my main computer. How can I change this? I like to keep emails on my laptop, but delete duplicates on my iPhone. I don't want to delete them entirely. I found no setting in the iPhone or in my Apple Mail that controls this. Generally I don't know if the control of this is on my laptop, on my iPhone, or somewhere in Gmail, and how to change it.
    Thank you.

    Have you confirmed your account settings for removing messages from the server when downloaded by the Mail.app on your computer, and with the iPhone's Mail client?

  • Error message on login to XSAN MDC and clients

    Hi,
    I installed a new XSAN system with SLServer,10.6.1 and XSAN 2.2 then updated XSAN to 2.2.1.
    The system works fine, the only thing whenever I login from client or server I have an error message popping for all FC attached LUNs, " the disk you inserted was not readable by this computer" I did a quick search on the net and it seems to be related missing AppleXsanFilter.kext. But for my case the kext is present at the expected location.
    When I click Ignore on the message window, the message dissapears. I didnt try Initialize, I dont want to destroy my XSAN volume, but the users are pretty curious about what's the message is and if they click the wrong button, what happens.
    Is there any way to have a message free login?
    BTW, whoever login into the system, XSAN user, local user etc, the mesasage appears for each and every LUN attached.
    Thanks and regards.
    Ayhan Genc

    Hi "bonematrix" - thanks for your suggestion.  I found the Help icon but was unable to find "Change, delete or reorder wifi networks" under WiFi.  I called my internet provider because earlier in the year I had problems accessing my e-mail because they had changed some of the security settings.  They tell me that what is happening is not related to anything they did in this respect although they did check into it for me.  It seems you are absolutely my last resort.  I would so appreciate you providing me with the explanation of how to accomplish this.  I am desparate!!

  • Stream of Login and Logout

    Hi,
    I wanted to create 2 page login(Login1 to login into Page Group1,another login into Group2).
    Can I set links to access Login1 anh Login2 ?.
    (I want Login1 derect Index of Page Group1,Login2 derect Index of page Group, the same question with Logout page?)
    Could you solve the problem ?
    regards,
    thangtk

    Hi,
    this is not possivble with PAR. You can try to achieve this with the Activity Data Collector. The ADC will collect more information in a more raw format and you'll have to apply you own filter to gain the desired information.
    SDN PDF: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e07edaa8-70ae-2b10-2390-f068636c8b1e
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/46/e42c3ed63369b5e10000000a114a6b/content.htm
    You can also try to catch these information with a customized login and logoff application (java) that will write the login / logoff ID and time to the DB.
    br,
    Tobias

  • I NEED TO GET LOGIN AND LOGOUT TIMING DETAILS FROM CLIENT SYSTEMS

    HI,
    CAN ANYONE PLEASE HELP ME ON HOW TO GET LOGIN AND LOGOUT , CLIENT EVENT DETAILS FROM CLIENT SYSTEMS ON SERVER 2008 R2.
    THANKS,
    KUMAR.

    You may need to enable active directory Logon/Logoff Audit event.
    The Audit logon events policy records all attempts to log on to the local computer, whether by using a domain account or a local account.
    On Domain Controller, this policy records attempts to access the DC only.
    By using these events we can track user's logon duration by mapping logon and logoff events with user's Logon ID which is unique between user's logon and logoff.
    Please refer to this blog to understand the complete process to audit the successful or failed logon and logoff attempts in the network using the audit policies :
    http://www.lepide.com/blog/audit-successful-logon-logoff-and-failed-logons-in-activedirectory/
    Lepide - Simplifying IT Management

  • How to disable automatic login and to see other accounts?

    I bought MacBook Pro Retina with Mac OS X 10.8.2 in a shop, where there already was account "kiosk".
    I created new account, gave him Administrator priviliges.
    In the Preferences / Users & Groups I see kiosk account as "Managed", and my new account as "Admin".
    I set:
    System Preferences / Security & Privacy / General / Disable automatic login = Checked.
    System Preferences / Users & Groups / Login Options / Automatic login = Off.
    But still I have two issues:
    1) After start the laptop automatically logins into kiosk account, while I explicitly switched off this option
    2) Apart from kiosk account, the OS doesn't see any other accounts, for example my new account.
    For example, when I changed login shell for kiosk account into /usr/bin/false, I couldn't login at all. The OS said something like, there are no active accounts. So I had to set login shell back to /bin/bash using single-user mode.
    The questions are:
    How to disable automatic login into kiosk account?
    How to see a choice between kiosk account and my new account in the login dialog?
    How to delete kiosk account? Currently the delete option is disabled for kiosk in System Preferences / Users & Groups.
    So far after laptop start I automatically login into kiosk, then switch into my new account with entering a password, which is weird.
    Thanks in advance.

    It is your only option if you want to get rid of that other user account. It seems the system is Hard Set to boot to that account. How and why I have not Idea but the first thing you should of done was Restoring it to the Original OS, if it was not Mt Lion to begin with, in doing so getting rid of all other accounts and files from that other account.
    Time to Bit the Bullet and Erase the drive completely and reinstall the original shipping version of OS X on that system.
    Anton Mironenko wrote:
    Reinstalling the OS would be too extreme. I already have many programs installed, and I tuned a lot of params. Data migration is another pain.
    I hope, it is possible to solve this issue in another way.

  • View logs in windows server (User login and logout )

    Hi Guys,
    I want to see the user login and logout times to the systems. I want know on which systems (Hostname) they logged into that account. 
    Could you please help me. Thanks in advance

    Hi
     You can check the log's on event viewer console,here is good article for your needs,please check;
    https://support.microsoft.com/en-us/kb/556015?wa=wsignin1.0

Maybe you are looking for

  • SAP Net Weaver Version 7.0 Installation

    Hello Experts, Iu2019m totally new in SAP products and I would like to ask about the installation steps as the following: 1-Iu2019m planning to install the following SAP products in one server (16GB RAM, 1TB HDD, Win 2003): A-Oracle Database Version

  • Query migration - Variable error

    Hi,   I'm trying to migrate this query from 3.5 to 7.0 when I get the follwoing error. SAP Supplied variable 0S_CTELM(Campiagn Element). I'm using this to restrict a characteristic "Campaign". There is a hierarchy that needs to be in place. THis quer

  • Creative Cloud Trial - License Key

    Hi, Problem: "trial" version of Adobe apps (Photoshop, Dreamweaver, ...) has expired after 1 month.  Still having the question to enter a license key - even if I'm a creative Cloud member. I tried all steps I've found on the forum. Even reinstalled e

  • SunStudio 12 Fails to compile template function with template argument

    Hi Look at the code below: #include <iostream> template<class InIt, class OutIt> InIt copy_n(InIt first,  typename  std::iterator_traits<InIt>::difference_type  length, OutIt dest)    for (;length--; ++dest, ++first)       *dest = *first;    return f

  • Applescript debugging PLEASE HELP

    So I wrote this automator program that basically takes a list of sequences and inputs them into a server and appends a URL on the page into a text document It works perfectly for a couple and then randomly just stops working and it is driving me craa