Read asp-session or cookie

hi!
there's an asp-login page that holds a session with login information.
this asp page then calls my jsp page.
the problem is that i wanna access this login information stored in the asp-session from my jsp.
how can i archieve this?
is there a way to access to the asp-session or the cookie?
thx in advance

easiest way is to forward response from ASP (these ASP has to be invoked after the login form is submitted - post method) to JSP and get the required parameter
there are two possibilities
1) directly u get values of by request.getParameter("username")
0r
2) pass parameter and values from ASP page as myjsppage?username=test
hope these solve your probs...my prob is dukes...
bye for now
Pranav

Similar Messages

  • Reading ASP Session Variables in CF

    We have an old ASP application that we would like to
    integrate some CF Reporting reports into. There are a couple of
    seession variables stored in ASP that I would like to get. Is there
    a way/workaround to reading these variables into CF?
    Thanks,
    James

    > I thought that was going to be the case... I was just
    worried about user's saving shortcuts to URL variabled pages...
    This will get me started... Thanks.
    What about writing a gateway web service for passing session
    info between
    application server platforms (I've not tried this sort of
    thing between CF
    and ASP, but have done so CF->CF and it worked OK)? This
    would be a bit
    more foolproof than using form submissions or URLs.
    Adam

  • Setting secure on session management cookie only in production

    I am faced with the following:
    In our developmentcycle we deliver full application exports to an acceptation environment and after testing to a production environment.
    However, only our production site does HTTPS. Development and acceptation only do HTTP.
    In production we have to set the "secure"flag on the session management cookie.
    We would like to set this flag in our deployment scripts.
    So,
    Is there an API we could use to set the "Secure" flag in the APEX metadata using SQL*Plus?

    hi
    ->Use request.getParameter(String s) to recieve the infomation from the html page into your servlet.for storing session specific info go for
    session.setAttribute(vble,value;
    hope it'll solve your problem.

  • XSQL Session and Cookies

    Hi, Steven,
    I have a question about cookies parameters in include-parameters.
    When set the following in my xsql file:
    <xsql:set-session-param name="current_user" value="{@sessionid}"/>
    <xsql:include-param name="mode"/>
    <xsql:include-request-params/>
    In the xml output, it looks like this.
    <request>
    <parameters>
    </parameters>
    <session/>
    <cookies/>
    </request>
    How come the session and cookies values are not appeared in XML file? However, if I reload the xsql file, the session and cookies values are there. Any idea what might be wrong or it is what should be?
    Thanks in advance.
    Julie Zhu

    I'd expect the cookies not to show up until the page request after the one in which they are set. This is correct since setting the cookies is something that's done on the response. Reading the cookies is reading them from the request.
    Regarding the session variables, it's
    always important to say what Web Servlet / Servlet Engine you're using XSQL with. Perhaps the setting of Servlet session variables behaves differently on different servers.

  • PPR and session timeout cookie

    Scott,
    Is there anyway of getting the PPR functionality to update the session timeout cookie whenever a PPR request is made???
    Thanks..

    I am using your session timeout function from otn.
    I am using it to timeout after a set period of inactivity, every time the page is redrawn the cookie time is updated.
    I am calling this function from the 'Session Verify Function' field in the authentication scheme, and initially setting the cookie on login.
    I believe that the cookie only gets updated when the page is re-drawn and the Session Verify Function is run??
    On a PPR request only part of the page is refreshed, the page header remains unaffected, which means the user can be active on a page without refreshing the timeout value on the cookie?
    (Not a major problem, but would be nice to be able to update the cookie on a PPR request as well)
    Thanks..

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • Read a session variable

    I have set a session variable "var1" in the pagedef using ADFUtil.setEL("#(sessionScope.var1)",myValue);
    How do I read this session variable, "var1" in select statement in a View Object please?
    Thanks

    Do NOT try to access the variables stored in a scope in a view controller project directly in the Model layer. It breaks the MVC paradigm.
    For your use-case,
    1) Create a View Object with a View Criteria that has a single bind variable.
    2) Have a method in AMImpl that takes a single parameter and applies the View criteria for the View Object Instance in 1) by setting the value for the bind variable with the input parameter and execute the View Object and expose this method through client interface.
    3) Use this method in ViewController project and Invoke the method.
    Thanks,
    Navaneeth

  • Maintaining Session, NO Cookies

    Hello:
    Environment: Apache/9iAS, Oracle DB, Unix OS.
    Issue: Maintain user session when Cookies are NOT allowed.
    What are the options to maintain a session on a load balancing (Apache, multiple web servers) environment and client side cookies are not allowed?
    Please address security, not losing sessions in your suggestions.

    repost

  • Error reading stored session data

    CF8/IIS6/Win2k3
    getting a ton of these messages:
    04/02 15:00:39 error Error reading stored session data
    (ID=70307b52029b2dd2dadc1f364fe3e4c3463e)
    java.io.StreamCorruptedException: unexpected end of block
    data
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
    at
    java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at java.util.ArrayList.readObject(ArrayList.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at
    coldfusion.runtime.SessionScope.readObject(SessionScope.java:211)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
    at
    java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
    at
    coldfusion.runtime.J2eeSessionScopeStub.readObject(J2eeSessionScopeStub.java:86)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at java.util.Hashtable.readObject(Hashtable.java:859)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at
    jrun.servlet.session.SessionService.retrieve(SessionService.java:1357)
    at
    jrun.servlet.session.SessionService.retrieve(SessionService.java:1341)
    at
    jrun.servlet.session.SessionService.restoreSession(SessionService.java:1259)
    at
    jrun.servlet.session.SessionService.restoreSessionState(SessionService.java:876)
    at
    jrun.servlet.session.SessionService.setClassLoader(SessionService.java:504)
    at
    jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:300)
    at
    jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:203)
    at
    jrun.deployment.DeployerService.initModules(DeployerService.java:708)
    at
    jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
    at
    jrun.deployment.DeployerService.deploy(DeployerService.java:428)
    at
    jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    at
    jrun.deployment.DeployerService.run(DeployerService.java:889)
    at
    jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Here is the arguments line in my jvm:
    # Arguments to VM
    java.args=-server -Xmx512m -Xms512m -XX:MaxNewSize=24m
    -XX:NewSize=24m -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled
    -XX:+UseConcMarkSweepGC -Dsun.io.useCanonCaches=false -Xdebug
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2702
    -Dcoldfusion.rootDir={application.home}/

    Beyond this I have not been able to identify or figure out
    what is causing the issue. I did a double check and some of the
    times are outside of our nightly back-up schedule. It looks like
    this issue hasn't happend for me since 27 Aug. I couldn't say why
    though. I'm hoping Adobe has an answer.
    Thx

  • APEX accessing ASP Session Cookie...?

    Hi,
    I'm trying to build an application to fit in with a pre-existing website.
    This site authenticates users, setting appropriate session variables in a cookie. Then each asp page carries a script to check these session variables, denying access if they aren't correct.
    I want my APEX application to fit in with this. Having read some of the documentation and browsed this forum, I'm thinking an open authentication application with an authorisation scheme based on these session variables.
    My main problem is, how (if at all) I can get APEX to pick up on these session variables? I don't really want to start getting them out and sticking them in the URL used to call the application, because that would be a bit too easy to spoof.
    Does anyone know a way of getting APEX to check a cookie and act on that? Or at least drag cookie variables over into its own session variables?
    Cheers for any help.
    Scott
    P.S. It may show, I'm new to quite a lot of this!

    Hello Scott,
    >> Does anyone know a way of getting APEX to check a cookie and act on that?
    APEX itself using cookies, utilizing a package called OWA_COOKIE. You can see an example on the login page (by default page 101) of your application.
    You should check if the OWA_COOKIE package could help you with what you need.
    Regards,
    Arie.

  • I need java application to read session and cookie requests

    Hi
    I have a java application that can the HTML and links etc but is there a way for the application to
    a. retrieve cookies when they are given and
    b. know when the cookie is requested
    c. present the cookie when when they are requested
    d. retrieve session variables when they are given and
    e. know when the cookie is requested
    f. present them when they are requested
    Or is there a component out there where i can look at the code if it's complex
    stev

    Sure, the cookie is in the HTTP headers, so you don't really need anything special to handle cookies.
    A starting point for further studies is:
    http://home.netscape.com/newsref/std/cookie_spec.html

  • Sessions without cookies on OAS 4.0.8.2

    I try to build a Servlet on OAS 4.0.8.2 where sessions are not realized via cookies but via URL encoding. This does not work, however, as the session information is added to the URL by the OAS in a form that destroys my query parameters which is an OAS bug, I think. Cookies work fine, but I am not allowed to use them in my context. Does anyone have experience with this ?

    OK! Fixed that one myself - for now. I had used some wrong jar:s in my libraries.
    There are still some problems.
    If I use JDK 1.1.8, I get the following trace when trying to run my client:
    java.lang.NoSuchMethodError: java.lang.System: method setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found
    at
    at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:696)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:744)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:181)
    at javax.naming.InitialContext.<init>(InitialContext.java:158)
    at test.BCEJBClient.main(BCEJBClient.java:32)
    The problem goes away if I instead use JDK 1.2.2. But in the project I'm working on we are usng JDK 1.1.8. How can this problem be solved?

  • Invalid Session ID - cookie encode/decode

    Hello,
    I'm looking for the correct combination of cookie encode/decode parameters for my own setup.
    Machine am : AM Server 7.0 on WS6.1
    Machine amc : my own webapps using AM client SDK & protected by a Policy agent. 2.2 Everything within a WS6.1 container.
    After being redirected to AM, I obtain my iPlanetDirectoryPro cookie and my webapp can obtain a SSOToken using the SSOToken token = manager.createSSOToken(String) if obtain the String via Cookie accessor's method.
    No luck with SSOToken token = manager.createSSOToken(HttpServletRequest) which always gives a Invalid Session Id message. I know that this is an encoding problem but I tried many combinations & heard that these settings are not always well documented. I have at the moment :
    am server AMConfig.properties :
    com.iplanet.am.cookie.encode=false
    am client sdk AMConfig.properties :
    com.iplanet.am.cookie.encode=false
    policy agent AMAgent.properties :
    com.sun.identity.agents.config.sso.decode = false
    com.iplanet.am.cookie.encode = false
    Has somebody worked that out ?
    Thanks !
    nieuwenj

    Hi, am using this code:
    AMUtil.java
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import javax.security.auth.callback.Callback;
    import javax.security.auth.callback.ChoiceCallback;
    import javax.security.auth.callback.NameCallback;
    import javax.security.auth.callback.PasswordCallback;
    import javax.security.auth.callback.TextInputCallback;
    import javax.security.auth.callback.TextOutputCallback;
    import javax.security.auth.callback.UnsupportedCallbackException;
    import com.sun.identity.authentication.AuthContext;
    import com.sun.identity.authentication.spi.AuthLoginException;
    import com.iplanet.am.util.Debug;
    * @author hjimenez
    public class AMUtil {
        private String loginIndexName;
        private String orgName;
        private String user;
        private String password;
         * Creates a new instance of AMUtil
        public AMUtil(String loginIndexName, String orgName) {
            this.loginIndexName = loginIndexName;
            this.orgName = orgName;
        protected AuthContext getAuthContext()
        throws AuthLoginException, com.iplanet.sso.SSOException, Exception {
            AuthContext lc = new AuthContext(orgName);
            AuthContext.IndexType indexType = AuthContext.IndexType.MODULE_INSTANCE;
            lc.login(indexType, loginIndexName);
            debugMessage(loginIndexName + ": Se obtuvo login context");
            return lc;
        private void addLoginCallbackMessage(Callback[] callbacks)
        throws UnsupportedCallbackException {
            int i = 0;
            try {
                for (i = 0; i < callbacks.length; i++) {
                    if (callbacks[i] instanceof TextOutputCallback) {
                        handleTextOutputCallback((TextOutputCallback)callbacks);
    } else if (callbacks[i] instanceof NameCallback) {
    handleNameCallback((NameCallback)callbacks[i]);
    } else if (callbacks[i] instanceof PasswordCallback) {
    handlePasswordCallback((PasswordCallback)callbacks[i]);
    } else if (callbacks[i] instanceof TextInputCallback) {
    handleTextInputCallback((TextInputCallback)callbacks[i]);
    } else if (callbacks[i] instanceof ChoiceCallback) {
    handleChoiceCallback((ChoiceCallback)callbacks[i]);
    } catch (IOException e) {
    e.printStackTrace();
    throw new UnsupportedCallbackException(callbacks[i],e.getMessage());
    private void handleTextOutputCallback(TextOutputCallback toc) {
    debugMessage("Se ejecut� TextOutputCallback");
    // Mostrar mensaje de acuerdo al tipo especificado
    switch (toc.getMessageType()) {
    case TextOutputCallback.INFORMATION:
    debugMessage(toc.getMessage());
    break;
    case TextOutputCallback.ERROR:
    debugMessage("ERROR: " + toc.getMessage());
    break;
    case TextOutputCallback.WARNING:
    debugMessage("WARNING: " + toc.getMessage());
    break;
    default:
    debugMessage("Tipo de mensaje no soportaado: " +
    toc.getMessageType());
    private void handleNameCallback(NameCallback nc)
    throws IOException {
    // asignar usuario
    nc.setName(this.user);
    private void handleTextInputCallback(TextInputCallback tic)
    throws IOException {
    // poner un prompt para obtener datos
    System.out.print(tic.getPrompt());
    System.out.flush();
    tic.setText((new BufferedReader
    (new InputStreamReader(System.in))).readLine());
    private void handlePasswordCallback(PasswordCallback pc)
    throws IOException {
    // asignar password
    String passwd = this.password;
    pc.setPassword(passwd.toCharArray());
    private void handleChoiceCallback(ChoiceCallback cc)
    throws IOException {
    // ignorar el valor default dado
    System.out.print(cc.getPrompt());
    String[] strChoices = cc.getChoices();
    for (int j = 0; j < strChoices.length; j++) {
    System.out.print("choice[" + j + "] : " + strChoices[j]);
    System.out.flush();
    cc.setSelectedIndex(Integer.parseInt((new BufferedReader
    (new InputStreamReader(System.in))).readLine()));
    public boolean login(AuthContext lc)
    throws UnsupportedCallbackException {
    boolean succeed = false;
    Callback[] callbacks = null;
    // obtener informaci�n del m�dulo solicitada
    while (lc.hasMoreRequirements()) {
    callbacks = lc.getRequirements();
    if (callbacks != null) {
    addLoginCallbackMessage(callbacks);
    lc.submitRequirements(callbacks);
    if (lc.getStatus() == AuthContext.Status.SUCCESS) {
    System.out.println("Login exitoso.");
    succeed = true;
    } else if (lc.getStatus() == AuthContext.Status.FAILED) {
    System.out.println("Login fallo.");
    } else {
    System.out.println("Estatus desconocido: " + lc.getStatus());
    return succeed;
    public void logout(AuthContext lc)
    throws AuthLoginException {
    lc.logout();
    System.out.println("Log Out!!");
    static void debugMessage(String msg) {
    System.out.println(msg);
    public String getUser() {
    return user;
    public void setUser(String user) {
    this.user = user;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    and call it from:
    import com.iplanet.sso.SSOToken;
    import com.sun.identity.authentication.AuthContext;
    import com.sun.identity.authentication.spi.AuthLoginException;
    import javax.security.auth.callback.UnsupportedCallbackException;
    import com.iplanet.sso.SSOException;
    import java.net.InetAddress;
    * @author hjimenez
    public class TestLogin {
        /** Creates a new instance of TestLogin */
        public TestLogin() throws SSOException {
         * @param args the command line arguments
        public static void main(String[] args) {
            try {
                // arg0 = LDAP arg1 = tecnet
                AMUtil login = new AMUtil(args[0], args[1]);
                // arg2=usuario arg3=pass
                login.setUser(args[2]);
                login.setPassword(args[3]);
                AuthContext lc = login.getAuthContext();
                if (login.login(lc)) {
                    SSOToken token = lc.getSSOToken();
                    System.out.println("Token asignado: "+token.getTokenID().toString());
                    String host = token.getHostName();
                    java.security.Principal principal = token.getPrincipal();
                    String authType = token.getAuthType();
                    int level = token.getAuthLevel();
                    InetAddress ipAddress = token.getIPAddress();
                    long maxTime = token.getMaxSessionTime();
                    long idleTime = token.getIdleTime();
                    long maxIdleTime = token.getMaxIdleTime();
                    System.out.println("SSOToken host name: " + host);
                    System.out.println("SSOToken Principal name: " +
                            principal.getName());
                    System.out.println("Authentication type used: " + authType);
                    System.out.println("IPAddress of the host: " +
                            ipAddress.getHostAddress());   
                    login.logout(lc); 
            } catch (AuthLoginException e) {
                e.printStackTrace();
            } catch (UnsupportedCallbackException e) {
                e.printStackTrace();
            } catch (SSOException e) {
                e.printStackTrace();
            }  catch (Exception e) {
                e.printStackTrace();

  • Change session ID cookie name

    Is there a way in Tomcat to change the cookie name for the session ID at the application or the server level? Instead of having JSESSIONID, to change it to something else. If 2 Tomcat servers are running on the same machine and the user goes between the 2 servers in the same browser window (process), then the ID from Tomcat A's session gets overwritten with Tomcat B's session ID, so the original A session is lost when going back to A after having been at B.

    URL rewriting and session cookies are two mutually exclusive ways of identifying the user.
    What you want to do is find the current session of the user and use that one instead of creating a new session each time the user changes machines. This is a bit of a problem because each Tomcat server keeps a separate list of SessionIDs to compare to the user's SessionID.
    You can kind of get around this problem by having the first server create a cookie that is visible to the entire domain, and then each server can fetch that particular cookie rather than looking for an explicit SessionID. For example...
    Cookie cookie = new Cookie( "bsampieri.com", getUniqueString() );
    cookie.setDomain( ".bsampieri.com" );
    cookie.setMaxAge( -1 );
    response.addCookie( cookie );And then each server checks for a cookie called "bsampieri.com", gets the identification string from that, and compares it with your list of "valid users" or shopping cart or whatever.

  • Finding real server from session ID cookie

    Greetings,
              running Weblogic express, 8.1.4, with 3 servers in a cluster.
              How can I determine which server handled a request when looking at a tcpdump from in front of a load balancer?
              I know the jsessionid cookie has the primary server ID at the end, but I can't find the ID value in any of the config files.
              Example cookie ID's are:
              -193723663
              242986410
              253184977
              They don't seem to be an obvious IP address/port conversion. Is there another way to find which server handled a request based on these cookie ID's?
              --Kurt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Thank you for the quick reply.
              Do you know if the JVM id's are persistent? Meaning once I do figure out which id for which server, will they stay the same through reboots/restarts, etc.?
              Also, if there is an easy way to have the server set a separate cookie value, like "server=IP", then I would not need to worry about the session ID. I'm not that familiar with weblogic to know how to do this.
              Regards,
              --Kurt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • My Apple ID is no longer being recognized after IOS5 update

    My Apple ID is no longer being recognized after upgrading my I-Phone to IOS5.  When trying to update my aps, it asks for the password and doesn't recognize it when I enter it.  I've been through the entire "Forgot my ID" process, but nothing's workin

  • Iphone 5 stuck at logo sign

    My Iphone 5 began to restart by itself for no reason. I proceeded to reset all of the settings back to default. It appeared to be working until it stopped loading. Now, it's just stuck on the Apple logo. I've searched for every possible way to fix it

  • Extension does not exist : File - XI - IDOC

    Hello, I have an IDOC MATMAS03 with an extension, so called MATMASA03.ZMATMASX IDX2 - metadata upload done more than once ! OK mapping from file to IDOC: test ok (Name of Interface ZMATX.MATMAS03.ZMATMASX) config: test of communication from file syst

  • Address  Book freezes a few seconds after opening:  'non-reponsive'

    Address Book Menus show but get beach ball of death in a few seconds. Does open normally under alternate user. Status: have reloaded and updated 15.3 with auto restoration of settings and have deleted various Address Book .plists and all 'Address Boo

  • I own Photoshop CS.  It will no longer activate by internet or phone.  Any suggestions?

    In June my computer crashed and when I got it back I had to reinstall Photoshop CS, activation was no longer supported by internet or phone so support provided me with the following link to download a free version of CS2: http://www.adobe.com/downloa