Session doesn't expire

I am tring to use the getLastAccessedTime() to time out a session, but looks like this method return the current system time instead of lastaccess time, here is the code, please help.
Thanks,
ruirui
HttpSession session = request.getSession(true);
java.util.Date created = new
java.util.Date(session.getCreationTime() );
java.util.Date FifteenMinAgo = new
ava.util.Date( System.currentTimeMillis() - 60*60*1000/4 ) ;
java.util.Date accessed = new
java.util.Date(session.getLastAccessedTime() );
out.println("session id="+session.getId());
out.println("New session:" + session.isNew());
out.println("creation time:" + created);
out.println("last access time="+ accessed);
out.println("fifteenMinAgo="+ FifteenMinAgo);
if (accessed.before(FifteenMinAgo)) {
out.println("More than 15 Minutes inactive, invalidated!");
session.invalidate();
return;

I use this code in my servlet app. and it works fine to me.
But in your case it seems you create a new session everytime you make your check:
...getSession(true)...
try:
...getSession(false)...
this will ensure that you're dealing with the same session everytime.
long maxTime = 0; //time before session expiration
long laTime = 0; //lastAccessedTime
long actTime = 0; //current Time
long iaTime = 0; //inactive Time
try{                          maxTime = Long.parseLong(System.getProperty("catalina.logoutTime").toString());;
laTime = request.getSession(false).getLastAccessedTime();
actTime = new java.util.Date().getTime();
iaTime = (actTime - laTime)/1000;
if(iaTime > maxTime){
sessionInactive = 1;
request.getSession(false).setAttribute("vesabError","session expired.");
RequestDispatcher dispatcher = getServletContext ().getRequestDispatcher("/index.jsp");
dispatcher.forward(request,response);
}catch(Exception Ex){
System.out.println("Exception...: " + Ex);
/Rickard

Similar Messages

  • Why can't I use my apps when my membership doesn't expire for another 8 days???

    My membership doesn't expire until the 20th. Why can't I access my apps now??? How can I speak to someone at support??

    Hi helen xia,
    Which OS are you using? Please let us know the exact error message.
    Regards,
    Romit Sinha

  • Session doesn't end when browser is closed, still logged in

    Hi!
    I have a Restrict Access To Page and a Log Out User server behavior that works fine. If I'm not logged in I redirects to a Log In page and then gets to the restricted page. If I click The Log Out link I have to Log In again, as supposed.
    But if I don't click the Log Out link and just close the Browser completely there are no problem to get back to the restricted page when I reopen a new browser window and enter the URL. Not even from another PC! Seemes to me that the session doesn'n end at browser close but dont know really?
    I have used this server behaviors many times without this problem but on another server and it has allways worked fine. I even made new pages with the behaviors on the other server and it works fine this time to.
    Goin' bananas soon!

    Thanks The_FedEx_Guy for trying to help but that is not the case I'm afraid, don't think there wouldn't be any differese if I click the Log Out link or if I just shut down the browser then. And if I close the browser without log out first I never get to the Log In page at all but straight to the restricted page. Anyway I deleted all password info and pretty much everything from IE cash but didn't help.
    Very Weird, I log in to the restricted page from PC and log out with the Log Out link then I have to log in again to se the restricted page, fine.
    I don't log in, instead I try to open restricted page in my laptop, I only got to the Log In page.
    If I log in from any of the two I'm also logged in from the other one. The restricted page is wide open what I can understand! And still is if I shut down the browser without logging out first.
    This only happens in IE on Win 7 and on server with this info http://lindogk.com/test2/php_info.php and in another folder on the same server with this http://lindogk.com/sponsor_tavl/php_info.php altered with htaccsess.
    No problem on this server http://gelins.se/phpinfo.php at all.
    No problems Wiyh Win XP at all.
    No problems on Firefox at all.
    Taking a pretty wild guess here but maybe there is something in the server configuration and hopefully I could set this right in my scripts with some set_ini or so and maybe someone out there know how to do it. Or maybe I'm allready crazy, hope not!

  • 500 Internal Server error session wd_application has expired

    Hi.
    We have developed a WebDynpro Application which is integrated with a Page and iView in the Portal System EP6 (WAS 6.40 SP 11) ==> 2 Server Cluster enviroment.
    The iView has Cache-Level "session" and Client-side Caching "Yes".
    We tested locally and also on the Target System without any problem.
    But in a specific case some clients has the error "500 Internal Server error session <wd_application> has expired".
    Releasing errors functionality:
    The error occurs, when the user releases the search method of the View instead of the Events onclick by the key Enter (onkeypress).
    <a href="javascript:void(0);"
              onclick="return me.h_e(event,window,this,'Button','BUTTONCLICK',{'event':'event','ControlId':'KLDI.OrgSearch_v.SearchButton'},'',true);"
              <b>onkeypress</b>="return me.h_e(event,window,this,'Button','BUTTONCLICK',{'event':'event','ControlId':'KLDI.OrgSearch_v.SearchButton'},'',true);"
              class="urBtnEmph urV" id="KLDI.OrgSearch_v.SearchButton" ct="Button" style="white-space:nowrap;">
    <span class="urCaption" ct="Caption">Suchen</span></a></td>
    We received those errors acctually only form clients who are running Windows XP. But not on every client who runs XP.
    Has anybody any idea?
    Thanks
    Vincent

    Hello,
    we run into the exactly same problem. The environment is also a 2 server cluster environment.
    Sometimes users has the error "500 Internal Server error session <wd_application> has expired".
    But it is not for specific users.
    Has anybody any ideas?
    Thanks
    Matthias

  • I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Creative Cloud keeps asking me to renew my subscription before I can access my photoshop, but it doesn't expire until May this year. Anyone know what the issue is?

    Creative Cloud keeps asking me to renew my subscription before I can access my photoshop, but it doesn't expire until May this year. Anyone know what the issue is?

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • My User session doesn't open, help me plz

    This morning when I open it, I want enter in my user session so I enter my password and i'm wait.. but after 5 mins my session doesn't open and the loading bar is blocked on 1/3 of it. I search a solution since 11am and I doesn't find a solution for my problem. I make a demand at apple to call me tomorrow morning but I'm desperate with this problem. Who can help me with? I don't know why this occurrence appeared because yesterday when I close it, all was ok. The only thing which was new on my Mac when I close it its my MacKeeper Premium. I bought a licence of 24 months. I make a anylise  before close and nothing is detected.
    I test Reinstal OS X but they say than my Disk is blocked with a password, when a enter my password they says is doesnt good password but i know that is good because I enter the same passwords every where when a configure my Macbook Pro.
    Im not sur if I enter good operating system and I don't know how check that because I dont have a acces on my finder.
    I'm a beginner with Mac system

    You need to create a JSP report from JDev's new object gallery from 'File -> new... -> Reports Objects', so that the project settings can be prepared to run JSP report.
    If you want to run JSP report on a standalone Reports server, put 'server=<server_name>' in 'parameters' attribute of <rw:report> JSP tag.
    You can also use rwservlet's in-process Reports server, by not specifying 'server=...' in 'parameters' attribute. No standalone Reports server is needed. Make sure JVM is set to'hotspot' in JDev's project settings -> runner.
    When running JSP in JDev, it uses JDev's embedded oc4j web server.
    Regards,

  • Multiple page form to email with sessions doesn't send mail

    I am creating a multiple page form where a user can apply for finance. I am trying to use session to keep the user input values and then the last page sent the application by email.
    My problem is the last step where it doen't send the email. I'm not sure if it the session I'm using is wrong because a simple form without sessions works fine.
    here are the forms
    First page is the input for with variables
    <form action="Finance_form_proposal_Address.php" method="post" >
      <span id="sprycheckbox1">
      <input  name="Disclaimer" type="checkbox" value="yes">
      <span class="checkboxRequiredMsg">Please confirm that you have read and understood the Terms and Conditions.</span></span>
      <div id="F1"><table width="100%" border="1" align="center" cellpadding="3" cellspacing="2">
      <tr>
        <td align="right" bgcolor="#F7E4F8" ><strong>Title:</strong></td>
        <td align="left" bgcolor="#F7E4F8"><select name="Title">
              <option value="Mr">Mr</option>
              <option value="Mrs">Mrs</option>
              <option value="Miss">Miss</option>
              <option value="Ms">Ms</option>
              <option value="Dr">Dr</option>
              <option value="Rev">Rev</option>
            </select></td>
    etc..
    </form>
    The second form:
    Getting values and input new form
    <?php session_start();
    $_SESSION['Disclaimer'] = $_POST['Disclaimer'];
    $_SESSION['Title'] = $_POST['Title'];
    $_SESSION['Forname'] = $_POST['Forname'];
    $_SESSION['Middle_name'] = $_POST['Middle_name'];
    $_SESSION['Surname'] = $_POST['Surname'];
    $_SESSION['email'] = $_POST['email'];
    $_SESSION['DOB'] = $_POST['DOB'];
    $_SESSION['DOB2'] = $_POST['DOB2'];
    $_SESSION['DOB3'] = $_POST['DOB3'];
    $_SESSION['Gender'] = $_POST['Gender'];
    $_SESSION['checkboxGroup1'] = $_POST['checkboxGroup1'];
    $_SESSION['checkboxGroup2'] = $_POST['checkboxGroup2'];
    $_SESSION['home_phone'] = $_POST['home_phone'];
    $_SESSION['mobil'] = $_POST['mobil'];
    $_SESSION['marital_status'] = $_POST['marital_status'];
    $_SESSION['Occupancy'] = $_POST['Occupancy'];
    $_SESSION['Dependants'] = $_POST['Dependants'];
    ?>
    Form on second page
    <form action="Finance_form_proposal_Bank_Details_employment.php" method="post"> <input  name="Disclaimer" type="checkbox" value="yes">
        <div id="F1"><table width="100%" border="1" align="center" cellpadding="3" cellspacing="2">
      <tr>
        <td align="right" bgcolor="#F7E4F8" ><strong>Correspondence Address:</strong></td>
        <td align="left" bgcolor="#F7E4F8"><input name="Correspondence" type="checkbox" id="Correspondence" value="yes" checked="CHECKED">
          <label for="Correspondence"></label></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>Street:</strong></td>
        <td bgcolor="#F7E4F8"><input name="Street" type="text"></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>District:</strong></td>
        <td bgcolor="#F7E4F8"><input name="District" type="text"></td>
      </tr>
      <tr>
        <td bgcolor="#F7E4F8"><strong>Town:</strong></td>
        <td bgcolor="#F7E4F8"><input name="Town" type="text"></td>
      </tr>
    etc ..
    </form
    Third page
    Getting values
    session_start();
    $_SESSION['Correspondence'] = $_POST['Correspondence'];
    $_SESSION['Street'] = $_POST['Street'];
    $_SESSION['District'] = $_POST['District'];
    $_SESSION['Town'] = $_POST['Town'];
    $_SESSION['County'] = $_POST['County'];
    $_SESSION['Country'] = $_POST['Country'];
    $_SESSION['Years'] = $_POST['Years'];
    $_SESSION['Months'] = $_POST['Months'];
    $_SESSION['Street2'] = $_POST['Street2'];
    $_SESSION['District2'] = $_POST['District2'];
    $_SESSION['Town2'] = $_POST['Town2'];
    $_SESSION['County2'] = $_POST['County2'];
    $_SESSION['Country2'] = $_POST['Country2'];
    $_SESSION['Years2'] = $_POST['Years2'];
    $_SESSION['Months2'] = $_POST['Months2'];
    $_SESSION['Street3'] = $_POST['Street3'];
    $_SESSION['District3'] = $_POST['District3'];
    $_SESSION['Town3'] = $_POST['Town3'];
    $_SESSION['County3'] = $_POST['County3'];
    $_SESSION['Country3'] = $_POST['Country3'];
    $_SESSION['Years3'] = $_POST['Years3'];
    $_SESSION['Months3'] = $_POST['Months3'];
    Then there is a another form to fill in , wont show that as it is in principle the same.
    This is the last page that should sent the data to email:
    <?php
    session_start();
    /* Subject mail variables */
    $emailsubject = 'Finance application from PandKshop';
    $webmaster = '[email protected]';
    /* Gathering Data */
    $goods = $_POST['goods'];
    $amount = $_POST['amount'];
    $Total_Cash = $_POST['Total_Cash'];
    $Deposit = $_POST['Deposit'];
    $Balance = $_POST['Balance'];
    $Payments = $_POST['Payments'];
    $Diclaimer = $_SESSION['Disclaimer'];
    $Title = $_SESSION['Title'];
    $Forname = $_SESSION['Forname'];
    $Middle_name = $_SESSION['Middle_name'];
    $Surname = $_SESSION['Surname'];
    $email = $_SESSION['email'];
    $DOB = $_SESSION['DOB'];
    $DOB2 = $_SESSION['DOB2'];
    $DOB3 = $_SESSION['DOB3'];
    $Gender =  $_SESSION['Gender'];
    $CheckboxGroup1 = $_SESSION['CheckboxGroup1'];
    $CheckboxGroup2 = $_SESSION['CheckboxGroup2'];
    $home_phone = $_SESSION['home_phone'];
    $mobil_phone = $_SESSION['mobil_phone'];
    $marital_status = $_SESSION['marital_status'];
    $Occupancy = $_SESSION['Occupancy'];
    $Dependants = $_SESSION['Dependants'];
    $Correspondence = $_SESSION['Correnspondence'];
    $Street = $_SESSION['Street'];
    $District = $_SESSION['District'];
    $Town = $_SESSION['Town'];
    $County = $_SESSION['County'];
    $Country = $_SESSION['Country'];
    $Years = $_SESSION['Years'];
    $Months = $_SESSION['Months'];
    $Street2 = $_SESSION['Street2'];
    $District2 = $_SESSION['District2'];
    $Town2 = $_SESSION['Town2'];
    $County2 = $_SESSION['County2'];
    $Country2 = $_SESSION['Country2'];
    $Years2 = $_SESSION['Years2'];
    $Months2 = $_SESSION['Months2'];
    $Street3 = $_SESSION['Street3'];
    $District3 = $_SESSION['District3'];
    $Town3 = $_SESSION['Town3'];
    $County3 = $_SESSION['County3'];
    $Country3 = $_SESSION['Country3'];
    $Years3 = $_SESSION['Years3'];
    $Months3 = $_SESSION['Months3'];
    $Sort_Code          = $_SESSION['Sort_Code'];
    $Account = $_SESSION['Account'];
    $Years_with_Bank = $_SESSION['Years_with_Bank'];
    $Months_with_Bank = $_SESSION['Months_with_Bank'];
    $CreditCard = $_SESSION['CreditCard'];
    $ChequeCard = $_SESSION['ChequeCard'];
    $Employment = $_SESSION['Employment'];
    $income = $_SESSION['Income'];
    $Income2 = $_SESSION['Income2'];
    $Occupation = $_SESSION['Occupation'];
              $Body = <<<EOD
    <br><hr><br>
    Goods: $goods <br>
    Amount: $amount <br>
    Total Cash: $Total_Cash <br>
    Deposit: $Deposit <br>
    Balance: $Balance
    Nine Monthly Payments of : £ $Payments
    Title: $Title <br>
    Forname: $Forname <br>
    Middle Name: $Middle_name <br>
    Surname : $Surname <br>
    Email: $email <br>
    DOB: $DOB/$DOB2/$DOB3 <br>
    Gender: $Gender <br>
    Home_phone: $CheckboxGroup1 Mobile phone: $CheckboxGroup2 <br>
    Home Phone number: $home_phone <br>
    Mobile Phone number: $mobil_phone <br>
    Marital_Status: $marital_status <br>
    Occupancy : $Occupancy <br>
    Dependants: $Dependants <br>
    Correspondence Address: $Correspondence <br>
    Street: $Street <br>
    District: $District <br>
    Town: $Town <br>
    County: $County <br>
    Country: $Country
    Years: $Years
    Months: $Months
    Street2: $Street <br>
    District2: $District2 <br>
    Town2: $Town2 <br>
    County2: $County2 <br>
    Country2: $Country2
    Years2: $Years2
    Months2: $Months2
    Street3: $Street3 <br>
    District3: $District3 <br>
    Town3: $Town3 <br>
    County3: $County3 <br>
    Country3: $Country3 <br>
    Years3: $Years3 <br>
    Months3: $Months3 <br>
    Sort Code: $Sort_Code <br>
    Account: $Account <br>
    Years with the Bank: $Years_with_Bank <br>
    Months with the Bank: $Months_with_Bank <br>
    CreditCards: $CreditCard <br>
    Cheque Card: $ChequeCard <br>
    Employment: $Employment <br>
    Income: £$income <br>
    Income Frequency: $Income2 <br>
    Occupation: $Occupation <br>
    EOD;
              $headers = "From: $email\r\n";
              $headers .= "content-type: text/html\r\n";
              $succes = mail($webmaster, $emailsubject, $Body, $headers);
    session_destroy();
    /* Results rendered as HTML */
    $theResults = <<<EOD
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head>
          <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
          <title>Thank you! The Piano and Keyboard Shop Online</title>
          <link rel="STYLESHEET" type="text/css" href="contact.css">
          <link href="The Piano and Keyboard Shop.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h2>Thanks for your application!<br />
    We endavour to get back to you as soon as possible with application results</h2>
    Please contact us on 0116 2541053 if you have any questions regarding your finance application
    Return to <a href="../index_main.php">Home Page</a>
    <div id="advertising">
        <div id="add_left"><a href="Contact.php">Contact us</a><br>
          <a href="About.php">About us</a><br>
          <a href="Finance.php">Finance</a><br>
    </div>
        <div id="adds_middle"><a href="term-conditions.php">Terms and Conditions</a><br>
          <a href="Privacy-Policy.php">Privacy Conditions</a><br>
          <a href="FAQ.php">FAQ</a><br>
    </div>
        <div id="adds_right"><a href="http://www.youtube.com/user/KeysoundWebsite">Follow us on YouTube</a><br>
          <a href="https://twitter.com/KeysoundUK">Follow us on Twitter</a><br>
          <a href="https://www.facebook.com/pages/Keysound/163590297024385">Follow us on Face book</a><br>
    </div>
      </div>
      <div id="advertising"> <div id="copy"><img src="files/Images/copyright.gif" width="19" height="22">
    </div> </div>
    </body>
    </html>
    EOD;
    echo "$theResults";
    ?>
    Is there something wrong with my sessions or just something in the code?

    Standard Apple Mail. I'm running Yosemite 10.10.1, and I'm amazed to see that About Mail says it's Mail Version 8.1 (1993), copyright 1995-2014 Apple Inc. 
    Interesting thought, do you think that it doesn't like to work with itself?  Actually, I'm fairly sure I've had the problem inside of other apps but I should document that.  I'll keep notes to see where this happens. 

  • [SOLVED] LXDM not saving selected session,Default session doesn't work

    Hello,
    I'm trying to use LXDM to start my desktop. However, every single time I log in, I have to tell it to use XFCE as my session.
    Even if I choose it manually, after logout/login it just resets to "Default session" (which doesn't work: just drops back to LXDM).
    I looked everywhere in my home directory and not found any place where it stores the session.
    Any ideas? lxdm 0.4.1-8, xfce 4.8, x86-64 Arch Linux.
    Thanks.
    Last edited by Renan Birck (2012-04-02 21:06:42)

    It's the default, except that I enabled autologin (which doesn't work due to the problem I describe in my post).
    [base]
    ## uncomment and set autologin username to enable autologin
    autologin=renan
    ## uncomment and set timeout to enable timeout autologin,
    ## the value should >=5
    # timeout=10
    ## default session or desktop used when no systemwide config
    # session=/usr/bin/startlxde
    ## uncomment and set to set numlock on your keyboard
    # numlock=0
    ## set this if you don't want to put xauth file at ~/.Xauthority
    # xauth_path=/tmp
    ## greeter used to welcome the user
    greeter=/usr/lib/lxdm/lxdm-greeter-gtk
    [server]
    ## arg used to start xserver, not fully function
    # arg=/usr/bin/X -background vt1
    [display]
    ## gtk theme used by greeter
    gtk_theme=Clearlooks
    ## background of the greeter
    # bg=/usr/share/backgrounds/default.png
    ## if show bottom pane
    bottom_pane=1
    ## if show language select control
    lang=1
    ## if show keyboard layout select control
    keyboard=0
    ## the theme of greeter
    #theme=Archlinux
    [input]
    [userlist]
    ## if disable the user list control at greeter
    disable=0
    ## whitelist user
    white=
    ## blacklist user
    black=

  • Client Session Not getting expired in OBI EE 10.1.3.4.1

    Hi All,
    I haave placed the below tag in the instanceconfig.xml file, but the client session is not getting expired.
    Can you please help me on the same.
    Our test environment OBI is enabled with the Site minder SSO.
    <ClientSessionExpireMinutes> 60</ClientSessionExpireMinutes>
    Thanks in Advance
    Siva

    Siva,
    There can be many factors for this: 'ClientSessionExpireMinutes'
    Defines the length of idle time that can pass before Oracle BI Presentation Server removes the user's client (browser) session information from its memory. This session includes user-specific state information such as request cache - dashboard page state - subject area information -connection information - and so on.
    Make sure while testing you are not doing anything on OBIEE browser window i.e. its idle
    Also, try to increase the minutes to say 240 and check how much time it takes ...??
    This shud solve..as this is very common problem with such tags..its not 100% guranteed !!

  • Ck-launch-session gnome-session doesn't work

    I go
    ck-launch-session gnome-session
    I'm told
    ** (gnome-session:3792): WARNING **: Cannot open display:
    What's going on? Why doesn't it work.

    @falconindy
    Fair enough. I'll see what I can do. Now if only there was more understandable documentation I wouldn't have this problem.
    Also what is your take on the following related problem?
    https://bbs.archlinux.org/viewtopic.php?id=111804

  • ASR 1002 Monitor Session doesn't works.

    Hello,
    I am trying to configure a monitor session in a Cisco ASR1002 but it doesn't works (sniffer is on interface gigabitEthernet 0/0/3).
    My config is:
    monitor session 10 type local
    source interface GigabitEthernet0/0/0
    destination interface GigabitEthernet0/0/3
    and interfaces are up:
    #show interfaces GigabitEthernet0/0/0
    GigabitEthernet0/0/0 is up, line protocol is up
      5 minute input rate 241240000 bits/sec, 26651 packets/sec
      5 minute output rate 4000 bits/sec, 6 packets/sec
    #sh interfaces gigabitEthernet 0/0/3
    GigabitEthernet0/0/3 is up, line protocol is up (monitoring)
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    Is very urgent for me so any help would be very appreciated.
    Thanks in advance for your help.
    Regards.
    Ruben.

    Hello,
    Please see below.
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/lanswitch/configuration/xe-3s/asr1000/lanswitch-xe-3s-asr1000-book/lnsw-conf-erspan.html#GUID-152D9875-169B-461F-A34B-ABAABD0C1FF8
    "The monitor session span-session-number type local command is not supported on Cisco ASR 1000 Series Routers."
             ===You may though configure ERSPAN to work as a local SPAN===
    *  Make sure that both the source session and destination session have the same erspan-id
    *  Use one locally configured IPv4 address to configure the "ip address" and "origin ip address" in source session and "ip address" in destination session
           Example snip: Monitor interface Gig0/0/0 traffic, and then send out through interface Gig0/0/1..
    monitor session 10 type erspan-source
    source interface Gi0/0/0
    destination
    erspan-id 10
    ip address 10.10.10.1
    origin ip address 10.10.10.1
    monitor session 20 type erspan-destination
    destination interface Gi0/0/1
    source
    erspan-id 10
    ip address 10.10.10.1

  • [SOLVED] KDE Start New Session doesn't work from lock screen

    On my laptop, if I lock the KDE 4 session and then click Switch Users > Start New Session, I get a login screen and can log in as a different user. All good.
    If I do the same thing on my desktop, it doesn't work. When I click Switch Users > Start New Session, it doesn't start a new session or switch VTs. Instead, I just get reprompted for the existing user's password.
    Both machines are running fully updated Arch. Anyone know how I can troubleshoot this? The only difference I can think of between the laptop and desktop is that the desktop has nomodeset specified as a kernel boot parameter. (It won't boot without it.) Could this be interfering with automatic VT switching? Manual VT switching (e.g. Ctrl+Alt+F1) works fine.
    Last edited by Rob_H (2014-12-27 14:28:06)

    Little more detail. Checking the journal, I can see Xorg is failing to start on display :1. If I compare Xorg.0.log with Xorg.1.log, it appears that it's not finding the proprietary NVIDIA driver in the second case. Don't know why it would be any different for :1, though. See?
    Xorg.0.log (good):
    [ 10.219] (II) LoadModule: "glx"
    [ 10.220] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 10.293] (II) Module glx: vendor="NVIDIA Corporation"
    [ 10.293] compiled for 4.0.2, module version = 1.0.0
    [ 10.293] Module class: X.Org Server Extension
    [ 10.294] (II) NVIDIA GLX Module 343.36 Mon Dec 1 15:50:02 PST 2014
    [ 10.294] (II) Applying OutputClass "nvidia" to /dev/dri/card0
    [ 10.294] loading driver: nvidia
    [ 10.294] (==) Matched nvidia as autoconfigured driver 0
    [ 10.294] (==) Matched nouveau as autoconfigured driver 1
    [ 10.294] (==) Matched nv as autoconfigured driver 2
    [ 10.294] (==) Matched nouveau as autoconfigured driver 3
    [ 10.294] (==) Matched nv as autoconfigured driver 4
    [ 10.294] (==) Matched modesetting as autoconfigured driver 5
    [ 10.294] (==) Matched fbdev as autoconfigured driver 6
    [ 10.294] (==) Matched vesa as autoconfigured driver 7
    [ 10.294] (==) Assigned the driver to the xf86ConfigLayout
    [ 10.294] (II) LoadModule: "nvidia"
    [ 10.294] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 10.300] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 10.300] compiled for 4.0.2, module version = 1.0.0
    [ 10.300] Module class: X.Org Video Driver
    Xorg.1.log (bad):
    [ 2153.825] (II) LoadModule: "glx"
    [ 2153.825] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 2153.833] (II) Module glx: vendor="NVIDIA Corporation"
    [ 2153.833] compiled for 4.0.2, module version = 1.0.0
    [ 2153.833] Module class: X.Org Server Extension
    [ 2153.833] (II) NVIDIA GLX Module 343.36 Mon Dec 1 15:50:02 PST 2014
    [ 2153.833] (==) Matched nouveau as autoconfigured driver 0
    [ 2153.833] (==) Matched nv as autoconfigured driver 1
    [ 2153.833] (==) Matched modesetting as autoconfigured driver 2
    [ 2153.833] (==) Matched fbdev as autoconfigured driver 3
    [ 2153.833] (==) Matched vesa as autoconfigured driver 4
    [ 2153.833] (==) Assigned the driver to the xf86ConfigLayout
    [ 2153.833] (II) LoadModule: "nouveau"
    [ 2153.833] (WW) Warning, couldn't open module nouveau
    Any idea what would cause it to work for :0 but fail for :1?

  • How can I make sure my history doesn't expire and that I can transfer over places.sqlite?

    There's probably alot of questions on this subject asked already but I've gone over just about all of the possibly relevant ones that've been already asked and I still can't figure out what to do. I'm trying to move my complete history from an XP Firefox profile over to a Windows 7 profile on another computer. Do I just do it by copying the places.sqlite file within that XP profile over into my USB flash drive, then replacing the places.sqlite in the Winodws 7 profile with the one from the other one? And after the file's in the right profile will I be able to just view all the sites I viewed on the old computer on the new one's history dialog box? I only am transferring my XP history to my Windows 7 because I want to look at stuff several months back and it keeps expiring on me, even to the point of getting rid of a month of history a week or so ago. This brings me to my other point, I keep up fairly well with updating both of my Firefoxes but recently (and I think this was way, way after they updated the browser so the history isn't set to expire by days anymore) the history just isn't reliable anymore. My XP will not only expire older months of history faster and faster it seems, but individual websites at the end of each month will actually disappear as I view new ones, instead of it all staying in there and just expiring each old month as a whole. Also, random sites in every month scattered all over the list of URLs will just disappear, and random sites that I've only visited in the past couple days will insert themselves randomly into much older months of history, which makes it hard to figure out the URLs I've seen, this last one seems like a common problem from what I've read, and all of these problems seem to be slowly creeping into my Windows 7 as well when they were originally on only my XP. The thing is for a very long time my Windows 7 would keep every ounce of my history that I kept on it, unless of course I went through the Clear History process myself. Now it seems to be slowly deleting it and having all the other problems that I mentioned earlier. I've got 592 GB out of 931 GB that's free space on my Windows 7 that I want to transfer my XP history into, and my Control Panel System panel says I've got 8 gbs of RAM in total. If I need to get some other information on RAM mention how to do that if you could. So in total, how can I transfer my XP history over into my Windows 7 so I can view all the sites I viewed on my XP in my Windows 7 history panel, as well as view all the old expired and/or manually deleted history on my Windows 7, without worrying about whether it will expire itself while I'm viewing it and writing down the relevant URLs that I need to know about. If I can only keep all my history through installing an add-on, a link to a relevant legal add-on that'll work well on both operating systems would be appreciated. Thanks to all here. (:

    Hello Saethwyr99,
    ''Do I just do it by copying the places.sqlite file within that XP profile over into my USB flash drive, then replacing the places.sqlite in the Winodws 7 profile with the one from the other one?''
    you are correct : [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile#w_your-important-data-and-their-files Your important data and their files]
    ''Also, random sites in every month scattered all over the list of URLs will just disappear, and random sites that I've only visited in the past couple days will insert themselves randomly into much older months of history, which makes it hard to figure out the URLs I've seen, this last one seems like a common problem from what I've read, and all of these problems seem to be slowly creeping into my Windows 7 as well when they were originally on only my XP.''
    from Firefox 4 and above versions there is not a time limit for the history.
    Firefox determines automatically how many pages can be kept '''without affecting the performance.'''
    ''as well as view all the old expired and/or manually deleted history on my Windows 7''
    i think this in not possible
    ''If I can only keep all my history through installing an add-on, a link to a relevant legal add-on that'll work well on both operating systems would be appreciated.''
    check the next add-on : [https://addons.mozilla.org/en-us/firefox/addon/expire-history-by-days/ Expire history by days]
    thank you

  • Unable to get my tabs back after power outage and "restore previous session" doesn't show up.

    Well, I've spent most of my day trying to figure out how to fix this. My power unexpectedly went out overnight and I left my computer on. When I woke up, i saw that the computer was off. So I started my computer, but when I went to get onto Firefox, none of my windows and tabs were there. (and I did have a ton of tabs open.) There wasn't even a "Restore Previous Session" icon to press on the Firefox homepage or a "Well, this is embarrassing" window. I tried opening "sessionstore.js" and "sessionstore.bak", but then a window came up titled "Windows Script Host" and said "Microsoft JScript Compilation Error." Then all there is to do is press "Ok". (By the way, at another time today when I tried opening a .js file, it said "Windows can't open this file" and it wanted me to choose the program I wanted to use to open the file, or use the internet to find a program. I chose Notepad, but then it was just a bunch of letters, words and symbols.)
    I've also tried entering "about:sessionrestore" to get my windows and tabs back and then it says "Well, this is embarrassing." and "Firefox is having trouble recovering your windows and tabs." And there are no windows and tabs showing up below that sentence, with check marks, like it is when session restore has worked for me in the past. The only thing that worries me is that I did restart my computer between when I first started it this morning and now, when I'm writing this. I wanted to see if the "Restore Previous Session" icon would bring up my missing windows and tabs from before. But all it brought up automatically were the current windows and tabs that I have open right now. So now I'm wondering if I've permanently lost those tons of tabs that I had open before the power went out.
    The other thing is that when I first got onto Firefox today, I could see all of my history from the days, weeks, and months past. Now I can only see today's history. I know I pressed something when I was trying to fix things but I don't remember what I pressed. Maybe that changed whether or not I could see the previous months' history. I did try "places.sqlite", "places.sqlite-shm" and "places.sqlite-wal" to restore my history, but again it said "Windows can't open this file" and it wanted me to choose a program to open the file. So again I chose Notepad, and it was just a bunch of letters, numbers, and symbols.
    Hopefully someone may have an answer for me. Thanks!

    Yes I can understand you being confused there is an awful lot of information you need to take in and learn as you encounter such a situation. I will try to expand my explanation to cover the points you ask.
    ''right click the file and select "restore previous versions", right?''
    That is correct when using Windows to try to recover for instance files where the working fie is corrupted, but a previous version worked
    If you have no previous versions available from Windows you need to work on whatever you do have. With any file restore operation it is always a good idea to make copies of not only the originals but also the restored files.
    If you restored the ''places.sqlite'' with Windows that could possibly have resulted in a copy overwriting your working file that is even worse than the original file.
    When you restore a file using the Windows OS it restores the files in their ordinary working location and they should function as expected without needing to do anything else. Generally it is probably best to try such restores when the files are not in use and in this instance that means when Firefox is closed.
    For the benefit of any other readers of this thread note : <br />The places.sqlite is in the Firefox profile and easiest to find before closing down Firefox as the ''troubleshooting information page'' (''about:support'') may be used to find it.
    * [[Profiles - Where Firefox stores your bookmarks, passwords and other user data#w_how-do-i-find-my-profile]]_how-do-i-find-my-profile
    The ''places.sqlite'' database is the only file Firefox itself has with the full ''History'' information in it. The database also contains bookmarks but Firefox should have some other backups of those. If the database is deleted Firefox will restore the database but all it can do is add back bookmarks information from its backups the History is lost.
    There is almost no chance of getting the History back unless there is another copy of that database. Either one Windows is able to recreate, or one that was somehow created by another method, that normally being the user deliberately making a manual backup of your profile or places file in advance. Or maybe having in place other backup procedures.
    '' am I supposed to double-click the file?''
    That is not going to help in these circumstances. There are advanced methods of studying the files but right clicking does not help in this instance.
    Open tabs information is stored in the series of files ''sessionstore.*'' It may take rather a lot of messing about to to get any useful information out of whatever files you have. It would normally probably be a lot quicker just going back to the sites concerned, but that is made more difficult if you have overwritten the History database so you may need to try if the tabs were important to you. I can give more details in another post if you need to try that
    We could have a lot more luck with your bookmarks. Did you bookmark most of the sites concerned ? If so then at least you have a good chance of finding the sites again.
    Have you already got a fairly complete listing of your bookmarks in the Firefox bookmarks library/menu ? If you need to try to get back lost bookmarks that existed in the last few days but not are not present right now make a backup copy
    *Of the profile folder called '''''bookmarkbackups''''' ( With its contents ! )
    * ''places.sqlite'' Remember whenever attempting restoring bookmarks always backup the database file ''places.sqlite'' first.

Maybe you are looking for

  • Please help. My account with CC info has been hack...

    Hi! Last night, someone hacked my Skype account. I can still get in through my connected Microsoft Live-account, but I am not able to shut him/her out. I have even tried contacting the hacker via text message, as my account is set up with a british c

  • Pin messenger -BB Pearl 8100

    I've got a BB Pearl 8100 sw version 4.2  and accidentaly Pin Messenger Have been removed. I can't re-install the application and I cant understand why... I meade the upgrade sw to version 4.5 hoping to find again pin messenger... ive tried to downloa

  • I want to print the front panel without all the header stuff while the vi is running

    I want to print the vi front panel without all the header information that Labview puts at the top. I want to do all this while the vi is running by pushing a button.

  • Spatial Queries are CPU bound and show very heavy use of query buffers

    Hi, Spatial Queries: When using tkprof to analyse spatial queries it is clear that there are implicit queries being done by Oracle spatial which use vast amounts of buffers, and seem unable to cache basic information from query to query - thus result

  • Cloning question

    Hi All, I have a question about cloning. In copying apps tier to destination, I am asked to copy those files to appldev, and not applmgr. The database files are still under oracle. I am not sure what will be the impact from this? Any process or scrip