Servlet session tracking without encodeUrl()

Hi,
I'd like use sessions without classic tracking where references are completely encoded by encodeUrl(). I thought about something like "servlet?sessionId=xxx&otherparam=yyyy". Can I do it with compatibility with classic session objects?
Thanks in advance,
Tom

Hi,
I'd like use sessions without classic tracking where references are completely encoded by encodeUrl(). I thought about something like "servlet?sessionId=xxx&otherparam=yyyy". Can I do it with compatibility with classic session objects?
Thanks in advance,
Tom

Similar Messages

  • Servlets: session tracking

    hi
    i am a newbie to j2ee. i am currently learning about session tracking in Servlets. i have written a simple program.
    this is what its supposed to do:
    FirstNameSessionServlet page
    accept the first name of the user
    submit
    LastNameSessionServlet page
    it shows the firstname name
    show session id
    accept the last name of the user
    submit
    FirstandLastNameSessionServlet page
    show the first name
    show the last name
    show session id
    show session attibutenames
    FirstNameSessionServlet page output:
    first name: textbox
    submit
    i enter abc into the textbox and click submit
    LastNameSessionServlet
    Your First Name is : abc(getParameter method used)
    Your First Name is : null(getSession method used)
    session id: CDFEBEEC7D599C70359AE52DBD1EAAEE session getLastAccessedTime1180087277281
    last name textbox
    submit
    i enter def into the textbox and click submit
    FirstandLastNameSessionServlet output page
    your first name is: null
    your last name is: def
    session id: CDFEBEEC7D599C70359AE52DBD1EAAEE
    session tracked success
    i can't understand the use of getAttribute(); Can anybody please tell my why getAttribute(); is returning null when i am trying to access the firstname variable through this method. what am i doing wrong? thanx for your help
    shankha
    here is my code
    FirstNameSessionServlet.java
    [//FirstNameSessionServlet.java
    package myname;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class FirstNameSessionServlet extends HttpServlet{
        public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             doPost(req, res);
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             res.setContentType("text/html");
             PrintWriter pw=res.getWriter();
             pw.println("<html><body>");
             pw.println("<form action='/contentnames/uti/LastNameSessionServletpath' method='post'>");
             pw.println("<p>First Name: <input type='text' name = 'firstname'></p>");
             pw.println("<p><input type='submit' value='Enter'></p>");
             String firstname= req.getParameter("firstname");
             HttpSession sess = req.getSession(true);
             sess.setAttribute("firstname",firstname);
             pw.println("</form></body></html>");
             pw.close();
    LastNameSessionServlet.java
    LastNameSessionServlet.java
    //LastNameSessionServlet.java
    package myname;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LastNameSessionServlet extends HttpServlet {
        public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             doPost(req, res);
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             res.setContentType("text/html");
             PrintWriter pw=res.getWriter();
             pw.println("<html><body>");
             pw.println("<form action='/contentnames/uti/FirstandLastNameSessionServletpath' method='post'>");
             String firstname= req.getParameter("firstname");
             int attrib=1;
             HttpSession sess = req.getSession();
             String firstnamesession = (String) sess.getAttribute("firstname");
                req.setAttribute("firstname", firstname);
                req.setAttribute("firstnamesession",firstnamesession);
                //req.setAttribute("firstname",firstname);
             pw.println("<p>Your First Name is  : "+firstname+"(getParameter method used)</p>");
             pw.println("<p>Your First Name is  : "+firstnamesession+"(getSession method used)</p><br><br><br>");
              pw.println("session id: "+sess.getId());
              pw.println("session getLastAccessedTime"+sess.getLastAccessedTime());
              Enumeration names = sess.getAttributeNames();
              while (names.hasMoreElements()) {
                   String name = (String) names.nextElement();
                   Object value = sess.getAttribute(name);
                   pw.println("<p>name=" + name + " value=" + value+"</p><br>");
             pw.println("<p>Last Name:  <input type='text' name='lastname'></p>");
             pw.println("<p><input type='submit' value='Enter'></p>");
    //         HttpSession sesslast = req.getSession();
    //         sesslast.setAttribute("lastname","lastname");
             pw.println("</form></body></html>");
             pw.close();
    FirstandLastNameSessionServlet.java
    //FirstandLastNameSessionServlet.java
    package myname;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class FirstandLastNameSessionServlet extends HttpServlet {
        public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             doPost(req, res);
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
             res.setContentType("text/html");
             PrintWriter pw=res.getWriter();
             pw.println("<html><body>");
             HttpSession sess = req.getSession(true);
             String firstname = (String)sess.getAttribute("firstname");
             //String lastname = (String) sess.getAttribute("lastname");
             String lastname = req.getParameter("lastname");
             pw.println("<p>your first name is: "+firstname+"<br>");
             pw.println("your last name is: "+lastname+"</p><br><br><br>");
             Enumeration names = sess.getAttributeNames();
              while (names.hasMoreElements()) {
                   String name = (String) names.nextElement();
                   Object value = sess.getAttribute(name);
                   pw.println("<p>name=" + name + " value=" + value);
              pw.println("session id: "+     sess.getId());
             pw.println("<h1>session tracked success</h1>");
             pw.println("</body></html>");
             pw.close();
    }

    Your understanding of the flow seems to be a little flawed.
    When you first open the FirstNameSessionServlet, you get the textbox asking for the firstname:
    >
    FirstNameSessionServlet.java
    [public void doPost(HttpServletRequest req,
    HttpServletResponse res) throws IOException,
    ServletException
         res.setContentType("text/html");
         PrintWriter pw=res.getWriter();
         pw.println("<html><body>");
    pw.println("<form
    m
    action='/contentnames/uti/LastNameSessionServletpath'
    method='post'>");
    pw.println("<p>First Name: <input type='text'
    ' name = 'firstname'></p>");
    pw.println("<p><input type='submit'
    ' value='Enter'></p>");//The running of the code till this point generates the HTML page, but your servlet is not done yet! Think of it as a function that till now, has printed some output ( the output being HTML code and the destination being the broswer ); but the function has not finished executing yet:
         String firstname= req.getParameter("firstname");
         HttpSession sess = req.getSession(true);
         sess.setAttribute("firstname",firstname);
         // Now, the immediately preceding part of your code creates a string and tries to put the value of the request parameter firstname into it and then put that string into the session object. But guess what? Your application has only just started running, this is your first page and there is no parameter in the request object with this name! This part of the code should come in the next servlet.
         pw.println("</form></body></html>");
         pw.close();
    LastNameSessionServlet.java
    String firstname=
    = req.getParameter("firstname");// This time, req.getParameter() will work since you submitted the last form which had a textbox with this name, you'll get the contents of that box.
         int attrib=1;
         HttpSession sess = req.getSession();
    String firstnamesession = (String)
    ) sess.getAttribute("firstname");//In the last servlet, you put in this parameter, but the value was null for reasons explained above.
         HttpSession sesslast = req.getSession();
         sesslast.setAttribute("lastname","lastname");
         //Again, you will get null for lastname if you tried to access it from the request object since you only just created the field with that name and you would be trying to access it within the same servlet.
         pw.println("</form></body></html>");
         pw.close();
    FirstandLastNameSessionServlet.java
         HttpSession sess = req.getSession(true);
    String firstname =
    = (String)sess.getAttribute("firstname");//this will still not work since you never put a correct value in the session object ( should have done after req.getParameter("firstname") in the second servlet )

  • What is session tracking in servlets?

    Hi ,
    I'm studying servlets I don't have the clear idea about session tracking and Why and where we need to use it. Can any one say about this.....
    Thanks in advance,
    Maheshwaran Devaraj

    Well Mheshpmr session tracking in servlets is very important...There are a number of problems that arise from the fact that HTTP is a "stateless" protocol. In particular, when you are doing on-line shopping, it is a real annoyance that the Web server can't easily remember previous transactions. This makes applications like shopping carts very problematic: when you add an entry to your cart, how does the server know what's already in your cart? Even if servers did retain contextual information, you'd still have problems with e-commerce. When you move from the page where you specify what you want to buy (hosted on the regular Web server) to the page that takes your credit card number and shipping address (hosted on the secure server that uses SSL), now let me tell you, how does the server remember what you were buying?
    Well There are three typical solutions to this problem.
    1. Cookies. You can use HTTP cookies to store information about a shopping session, and each subsequent connection can look up the current session and then extract information about that session from some location on the server machine. This is an excellent alternative, and is the most widely used approach. However, even though servlets have a high-level and easy-to-use interface to cookies, there are still a number of relatively tedious details that need to be handled:
    * Extracting the cookie that stores the session identifier from the other cookies (there may be many, after all),
    * Setting an appropriate expiration time for the cookie (sessions interrupted by 24 hours probably should be reset), and
    * Associating information on the server with the session identifier (there may be far too much information to actually store it in the cookie, plus sensitive data like credit card numbers should never go in cookies).
    2. URL Rewriting. You can append some extra data on the end of each URL that identifies the session, and the server can associate that session identifier with data it has stored about that session. This is also an excellent solution, and even has the advantage that it works with browsers that don't support cookies or where the user has disabled cookies. However, it has most of the same problems as cookies, namely that the server-side program has a lot of straightforward but tedious processing to do. In addition, you have to be very careful that every URL returned to the user (even via indirect means like Location fields in server redirects) has the extra information appended. And, if the user leaves the session and comes back via a bookmark or link, the session information can be lost.
    3. Hidden form fields. HTML forms have an entry that looks like the following: <INPUT TYPE="HIDDEN" NAME="session" VALUE="...">. This means that, when the form is submitted, the specified name and value are included in the GET or POST data. This can be used to store information about the session. However, it has the major disadvantage that it only works if every page is dynamically generated, since the whole point is that each session has a unique identifier.
    Servlets provide an outstanding technical solution: the HttpSession API. This is a high-level interface built on top of cookies or URL-rewriting. In fact, on many servers, they use cookies if the browser supports them, but automatically revert to URL-rewriting when cookies are unsupported or explicitly disabled. But the servlet author doesn't need to bother with many of the details, doesn't have to explicitly manipulate cookies or information appended to the URL, and is automatically given a convenient place to store data that is associated with each session.

  • Session tracking and Internet Explorer

    Hi,
    I am currently maintaining a servlet application, on apache/jserv.
    This application implements a session tracking using a shared static hashtable of session data, associated with session id's.
    This application may open more than one client browser windows.
    With netscape, no problem.
    With Internet Explorer, since the version 6, when the client close at least one window, the session is closed.
    Thus, the application reject any new request from this client, sent by still open windows (session cannot be retrieved in the hashtable).
    Has somebody heard about this problem ?
    Thanks for any answer.

    Thanks.
    In fact, I believe that IE keeps the same session for
    child windows.
    The problem is: when you click on a link which open a
    new window, the new open window share the session with
    its parent window.
    When the new window is closed, the session is also
    closed.
    It appears that this mechanism only exists since the
    version 6 of IE.No. Earlier IE version handle session cookies the same way.

  • URL Session Tracking

    Hi,
    i want to make a group of JSP pages in a Web App, but assuming that the browser doesn't accept cookies.
    Is there anyway that i don't have to indicate every link as
    response.encodeUrl("index.jsp")I've heard something about a <url-session-tracking/> tag, but i've tried to put in the web.xml file, but it doesn't work.
    I just want to put Index and the App Server takes care of putting the jsessionid info in front of the url
    Thank you

    Cancelling this question.

  • Always use URL Rewriting for session tracking?

    All you JSP guru:
    I am working on a JSP project that requires session tracking. I have successfully implements session tracking with both cookies or URL rewriting. I know that with the HttpSession object, it will always try to use cookie first, if that's disabled, then it'll automatically switch to URL rewriting. However, is there a way to force the HttpSession object to ALWAYS use URL rewriting instead of cookies? I have searched for an answer for a long time and haven't been able to found a solution. Is it possible at all? Thank you very much.

    i was going to say that WebSphere always uses URL rewriting if you enable it at all, but someone beat me to it (indirectly) :-)
    however, that seemed to me to be a violation of the spec, which seemed to imply the behaviour you're describing (only use URL rewriting if cookies are not supported on the current client)
    here's a response someone else made on a websphere newsgroup to a statement in that regard:
    I believe you are technically correct. However from my
    experience, I think the spec if flawed in this area since
    there is no reliable way of determining whether the
    client browser supports cookies. The authority on
    cookies (www.cookiecentral.com) says:
    "To properly detect if a cookie is being accepted via
    the server, the cookie needs to be set on one HTTP
    request and read back in another. This cannot be
    accomplished within 1 request."
    This is asking too much of a servlet engine
    implementation. Even if it did submit a request for this
    purpose, the user could refuse the cookie. So
    then technically the browser supports cookies, but the
    servlet engine infers it doesn't. So if the servlet engine
    infers the browser does not support cookies and so
    encodes the URL, it is again out of spec because the
    browser really does support cookies. By doing it
    however encoding is configured makes things simpler,
    robust, consistent and avoids the flaw.
    My opinion.so, mostly i'm just rambling, but if you're using websphere, you should get the behaviour your boss wants. if you're using something else, i suppose there's a chance it'll "violate" the spec in this same, potentially helpful way.
    btw, i remember somebody else complaining that URL rewriting is less secure than cookies, but i kinda think they're about equal. it seems like either could be intercepted by a sniffer and then used to spoof. but i'm no expert in that stuff...

  • Fetch a session attribute without transfer it as parameter

    Hellow everyone, now I meet a greate problem:
    I put a session attribute with a code (as identifier) in HttpServletRequest,
    but do not know if there is any way to fetch it from request object in a none servlet/jsp class
    without transfer the HttpServletRequest object? for example, should I use some context object fetch it
    directly from context rather than from request object.

    Hi!
    If you want to fetch the session object without transfering the parameters, then you can try with the getAttributeNames() method of the HttpSession Interface.
    Try it out!
    If u face any problem mail me, here itself or else to my mail id : [email protected]
    Regards,
    dinesh

  • Oracle Forms Session Tracking mechanism

    Hi,
    In this doc http://www.oracle.com/technology/products/forms/pdf/10g/troubleshooting_fls.pdf we can read the following:
    The JsessionID, which uniquely identifies a Forms session. The Forms Listener Servlet uses two session tracking mechanisms:
    - Cookies, where the Servlet container sends a cookie to the client.
    The client returns the cookie to the server upon each HTTP
    request, thereby associating the session with the cookie.
    - URL rewriting, where the Servlet container appends a session ID
    to the URL path, for example:
    http://host[:port]/forms90/l90servlet;jsessionid=a23445bcde89
    Does this means that forms uses one of those, or uses both mechanisms simultaneous?
    anyone?
    Regards
    Ricardo
    Edited by: user12015527 on Mar 10, 2010 2:39 PM

    duplicate post: Oracle forms session crashes.

  • Does Tomcat 4.0 support session tracking?

    I have use Tomcat 4.0 to run my servlet code with session tracking, however it has no compile error but have error when the servlet is run with the session code..
    Anyone know what the probles?

    The following are the error message:
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    java.lang.NoSuchMethodError
         at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1185)
         at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
         at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
         at SessionExample.doGet(SessionExample.java:66)
         at SessionExample.doPost(SessionExample.java:121)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:484)

  • Tomcat Session Tracking with Object Post and Repeated Applet Jar Download

    Hi there,
    I have an issue with session tracking in Tomcat (5.0.28) and the JRE repeatedly downloading the original Applet Jar.
    Everything works fine (session tracking and HTTP GETs) until I post an Object from the Applet to a Servlet and the Servlet reads the Object.
    After that happens the JRE downloads the Applet Jar about 20 times and continues to download it after further requests to the Servlet.
    Not sure if the following is related but I'm parsing XML returned by the Servlet in the Applet and I get the following in the Tomcat logs:
    127.0.0.1 - - [08/Feb/2005:08:43:12 +0000] "GET /[webapp_path]/servlet/META-INF/services/javax.xml.parsers.SAXParserFactory HTTP/1.1" 404 1142
    If I turn off the session tracking in the Servlet it all works fine.
    I'm using the standard HTTPSession tracking API.
    Any help is much appreciated as this is a serious issue!
    Ian

    ...furthermore...
    I've now found I had disabled caching in the JRE.
    If I enable it the immediately after a POST (not an Object) then the Applet is repeatedly downloaded and it appears more so than before.

  • Customer login session tracking questions

    Hi,
    I work for a research support group at a university. We have a mixed platform environment. The nature of the services we provide requires that we bill for time spent on out compute devices.
    There are a couple of questions in this posting. The fundamental one though is -- for 10.4 and higher Macs running on Intel and non-Intel hardware what is the "best" solution to track login sessions for our customers? A session has to include the concepts of logging in and out from the console or remote (ssh) access to the machine(s).
    I am interested in Apple native and third party or open source solutions. I need to track/log that customer-X logged in to machine-M at dateTime-T and logged out at dateTime-T'. I also need to know if the machine was (re)booted or had some other action occur that would impact a customer login session.
    So the main question is, are there existing customer session tracking solutions?
    I have an existing home grown (non-Intel) solution that works well on non-Intel macs and other *nix boxes. It is a daemon that reads accumulated, rotated wtmp files and then "hangs" on the current wtmp file waiting for and processing session records as they arrive.
    This worked like a champ until we installed our first Intel Mac. I re-compiled the C code that uses the utmp.h include files and structs to get at the info but it silently fails. I received some advice on changing my make file and am currently using:
    # Mac OS
    CC = gcc -Wall -g
    CFLAGS = -I/usr/include/mysql -isysroot \
    /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 \
    -framework CoreServices
    LDFLAGS = -L/usr/lib/mysql -lmysqlclient -lz \
    -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk \
    -arch ppc -arch i386
    PLATFORM = osx
    wtmp_parser: wtmp_parser.c
    ${CC} ${CFLAGS} -o $@ $? ${LDFLAGS}
    /bin/mv $@ $@.${PLATFORM}
    Again, this compiles without error but silently fails. I don't know anything about compiling on any Macs, much less these new ones. Ideas are greatly appreciated.
    Lastly, I have started reworking the whole setup and may move it all to perl. Here I can read the wtmp files easily using unpack() even on the Intel Macs. I can daemonize the thing but I'm stumbling a bit on one issue.
    I have noticed in the past that there can be a sort of race condition during the wtmp rotation on some machines where the active wtmp gets rotated but the old logging still writes one or two records to the rotated file before switching to the new one. I was starting to look into a programmatic solution for this when I looked at the rotated wtmp files on this one machine and I see file dates of:
    Dec 5 15:29 wtmp
    Oct 1 01:47 wtmp.0.gz
    Aug 29 16:05 wtmp.1.gz
    Aug 1 05:29 wtmp.2.gz
    Jul 31 18:26 wtmp.3.gz
    May 31 2007 wtmp.4.gz
    Okee... I know there is a /etc/monthly script that should be doing the rotation but it looks like it is not doing what I expect. It seems that it is not rotating all the existing files correctly. Ideas?

    I am done. Sorry for bothering

  • Does Conection Pooling affect my session tracking?

    hi
    in today's world of growing internet users it's very difficult to handle the number of requests that come at a time.
    Considering an example of a website such as a commercial one and i am in a scenario where i track the session of a user
    i use a servlet for this purpose..and let's assume that a javawebserver is the server
    after a few months my site hits the peak and i am not able to handle so many requests at a time i have a one more javawebserver apart from the existing one and i distribute the requests saying the first 10 to server 1 and the next 10 on server 2
    A visitor enters and i start keeping track of the user ..what will happen if the user when made a request
    first was directed to the server1 and the same user when makes a second request is on server 2
    then will session tracking of a particular user still be possible
    In anticipation of a favourable response
    Regards

    There are a number of ways that you can handle this. For example, ATG's Dynamo application server generates it's own session id and, as part of this session id, it uses a code that specifies which server the session lives on. Then, the load balancing software (which is obviously custom written to look for this code) properly redirects the request "behind the scenes" to the server that this session originated from.
    There are other ways to handle this, but the above is the most straightforward IMHO.

  • Can't add a new audio track without any settings

    Can anyone tell me were faced with the same problem. Doing audio post production in Logic Pro X, the latest version, the project is big, At some stage the work I was faced with the fact that you can't add a new audio track without any settings, no matter what inserts I track with duplicate settings of one of the tracks and it begins to sound with this track. I don't add a new audio track with duplicate settings. I add a new one, and I still opens the track with some sort of settings. What is it? This is a glitch or I'm somewhere that we have not considered? Duplicates the configuration of one of the tracks collected in group 1, which I did for editing convenience. Duplicates and also automation and if the new track am I doing something then this machine is transferred to the existing track from this group.

    Everything works in full 'Logic Pro X' mode. It's just a glitch in my project. The problem while you decide this: I insert a new track and it reset and set the output.

  • How can I join 24bit tracks without ripping from CD?

    I've begun to upgrade my library to 24 bit audio, and many of the albums I want to upgrade have tracks which should be "joined." But if I buy, say, Pink Floyd's  Dark Side Of The Moon from HDTracks, and want to have each side play as one continuous track, I have to burn it to CD first, then rip it. Which reduces the audio back to 16 bit. I wish iTunes would start selling albums in 24 bit ALAC, but that's another issue. Does anyone know a way to join 24 tracks without burning to CD and ripping?
    Thanks!

    Mark Bradford wrote:
    Yes, I suppose I could use Garage Band or Logic for that. Makes for a lot of work, though. I guess I was hoping for something easier. Thanks!
    Hi Mark,
    Up to you, of course, but as audio editing tasks go, stringing a few tracks end-to-end is relatively simple.
    The other option is just to put the relevant tracks in a playlist in the desired order, make sure Crossfade is set to 0, and play them in a row.  Try it and see whether the transitions come across as "good enough."

  • Add specific hotkeys for vlc (disable video track without disabling audio track)?

    There's no way to add hotkeys for [menu bar > Video > Video Track > Disable] under Preferences or Advanced.
    When I use [SysPreferences > Keyboard > Keyboard Shortcuts > Application Shortcuts > '+'] to add a hotkey for "Disable", it applies to audio also [menu bar > Audio > Audio Track > Disable].
    How do I disable the video track without going through the menu bar? Can I go into vlc.app and edit it? Or is there an app that will help? Or is there a way to specify which (menu bar>disable) I want to add hotkeys to, in application shortcuts?
    I'm actually using 10.8 if that matters.
    (It only has 35 followers compared to 10.9's 250 followers)

    Bump

Maybe you are looking for

  • All graphics / vector in Save for Web are getting blurry / unsharp from Illustrator

    All graphics / vector in Save for Web are getting blurry / unsharp from Illustrator. Same problem with save for web in Photoshop. Frustrating to be working as a designer and not be able to create sharp logos for mail sign, word templates, PPT templat

  • Can i change the default page new tabs open to?

    It is currently Yahoo when i click new tab but i want it to be Google, advice?

  • Best way to know correct forecast model - process chain set up with multiple forecast models

    Hi Experts, I need your help in selecting best forecast model for our company. We have some of the models already used for our company, and because of multiple models used it is taking very long time for process chain to finish. There is no existing

  • Can't get audio to record

    When I try and record a screen cast, I get no audio - I get a warning "Adobe Captivate must establish audio input and recording sensitivity levels to create the best possible audio quality. Do you want to continue testing audio levels? I click Yes No

  • Parallel Ledger in TRM

    Hi, We have create two accouting principal in FI - GAAP and IFRS and assign GAAP to traget Ledger Group 0L & IFRS to traget Ledger Group IF. We run TBB1 for accotung system hit 0L ledger group only. We use only one valuation area 001 for forex valuat