Cookie + redirect on another host

Hi all,
I have created a cookie with some informations, and put it in the response. Then, I have to redirect to an url (http://etc...) with is not on the same server ( I can't do forward("/webapp/...") )
But when i do a response.sendRedirect("http://...), my Cookie is lost.
How could I keep that Cookie ? Can i force the Cookie to be written on the other server before i do the sendRedirect ?
Thanks.

By default, browsers only send cookies back to the site they came from originally (actually to any any site within the same DNS domain), so if the site you're redirecting to is in another DNS domain, you're out of luck.
If you're trying to redirect to another server, make sure of the following:
- you've called setDomain on the Cookie, with the corredct domain info
- you've called setPath on the Cookie
If it still doesn't work, you may try the following trick:
- instead of a sendRedirect, just return an ordinary html document
- in the head part of the html document, include a header like this:
<meta http-equiv="Refresh" content="3;URL=http://www.some.org/some.html">
This makes the browser redirect to the specified url after 3 seconds (feel fre to specify your own number of seconds...)

Similar Messages

  • Saving a website on the hard drive so that you can put it on another host

    I just made a website and want to save it to my hard drive just in case everything crashes or there is a dispute with the host and then I will have the website ready to put on another host. For example, if the host decides they don't like my content they might just pull it off the web. I have heard it happen to people and they had to find another host. I don't think it will happen to me but you never know and I just want to have a copy so that if there is any dispute, I can have the website saved and ready to put up on another hosting account.
    Can I just save it from the web using "Save file"? Will that save it in a form that's good enough for putting on another host? I can hire a designer to put it on the host if it takes a few extra programming steps, so long as I have the files saved .....
    Or do I have to do something complicated like special save programs like
    http://www.sitesucker.us/mac.html ?
    I use Scrapbook add-on on Firefox to save the webpages I like just in case the site gets pulled down in the future. Is that the kind of thing I need? If that is all I need, can I use Scrapbook to save my website?
    Will it save all the information to restore the website on another host exactly as it appears? My website has been coded with HTML/CSS. I don't think there is much PHP.
    I am not sure about databases. My website is simply selling a service so I don't keep a database I think or just a minimal one. The customer fills out a form and the information goes to my email address. And the information on my website doesn't change. It isn't a blog that I am adding information to constantly. It just has links for navigating to different pages on the same website. It doesn't have links that point to other websites. There are no fancy files like movies etc.
    I just want something to save my website so that I or an experienced web person can easily put it back up on another host.
    I use Snow Leopard 6.0 by the way. I haven't upgraded to Snow Leopard 6.3 because there were a lot of problems when I did that in the past. So I went back to Snow Leopard 6.0. (It's been good so far so I think I will stay with it.)

    I didn't make it. I gave the psd design to a web designer and gave him instructions to make it using CSS as I heard CSS web pages load faster. He said he wouldn't use database programming languages like php or MySquareL or whatever they're called because he said I didn't need them and he would charge me a lot more for that, so I said just make it with CSS/HTML. I think he's a PC guy, not a mac guy. He's a professional designer and he made my website from scratch from my designs, not with a website builder.
    He hasn't put it on the host yet though he's just about to. I did a search about backing up your website and one website said that some hosts allow you to backup the website using cPanel or something like that. I don't know whether my host has that or not. My host account is very cheap like $16 a year so I don't think there are any special features to the hosting account.

  • How can I eliminate the toolbar that comes up every time I swith websights and says Firefox prevented this page from automatically redirecting to another page and when nothing comes up I have to hit ALLOW and most of the time it screws me up

    I am running OS10 on a MAC and every time I go too another web site (most of the time) a new tool bar pops up that says " Firefox prevented this page from automatically redirecting to another page" and on the other end I must hit the button ALLOW because it is usually screwing me up and Iwant to disable it or use another browser

    Options > Advanced > General, un-check "Warn me when web sites try to redirect or reload the page"
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • When I click on a link in an email I get the following message at the top of the screen: "Firefox prevented this page from automatically redirecting to another page...[Allow]. How can I stop this?

    When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
    "Firefox prevented this page from automatically redirecting to another page...[Allow].
    How can I stop this?

    # Press Alt+T
    # Select Options
    # Select Advanced Panel
    # Select General Tab
    # You will see option "Warn me when websites try to redirect or reload page"
    # Uncheck it as given in the screenshot.
    <img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
    ''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.''

  • AFter the latest download, my e-mail service keeps getting a bar at the top "Firefox prevented this page from automatically redirecting to another page". I have to keep hitting the "Allow" link? How do I get rid of this?

    Ever since the last update, I'm having problem accessing my e-mail account. I keep getting an annoying bar at the top of the screen "Firebox prevented this page from automatically redirecting to another page." I have to keep hitting the allow button, sometimes twice. And when I do get into the accounts the bar jumps in and out every time I open a new e-mail, or delete and old one.
    How do I get rid of this. I've had this account for years, with a very reputable private e-mail provider. This is nuts.

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Create test version of database in another host

    Hi!
    As a production system I have a database with a standby database. (Dataguard).
    Now we want to create a test system of the production database in another host, test system shall not be with a standby database.
    Production system is about 5GB.
    What is the fastest and easiest way to create the test database, Oracle binaries are installed in test host but no databases are created.
    /Ulf

    If your database is really only 5 Gb (which would be quite small, particularly for a system that warrants Data Guard), export and import is probably the easiest option. You can also clone the database or recover your backup to the QA machine, but those options seem like a bit more work.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • I'm getting this message: "Firefox prevented this page from automatically redirecting to another page." but unchecking the box for "warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. M'aidez

    Can't load Google Calendar. I'm getting this message: "Firefox prevented this page from automatically redirecting to another page" but unchecking the box for "Warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. It's not reported as a generalised problem in Dashboard. Google Calendar opens and works fine on my 12" PowerBook G4, but this is a recent problem on my G5 13" MacBook Pro. Mayday!
    == URL of affected sites ==
    https://www.google.com/accounts/ServiceLogin?service=cl&passive=1209600&continue=http%3A%2F%2Fwww.google.com%2Fcalendar%2Frender%3Ftab%3Dmc%26pli%3D1&followup=http%3A%2F%2Fwww.google.com%2Fcalendar

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

  • Transfer domain to Business Catalyst from another host

    I have redesigned my first website in Muse and want to host it on Business Catalyst. My client is currently using another host. How difficult is it to make the transfer using the existing domain?

    Heaps of guides on this in the guide section here, faq, and the knowledgebase.
    http://helpx.adobe.com/business-catalyst/partner/going-live-guide.html

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • When i click on a search result from google, i am automatically redirected to another website everytime

    This just started recently, since installing firefox 4. Now whenever I search on google or other search engines, when I click on a result, I am automatically redirected to another search site. Any ideas?

    Try running several malware scanners. It is best to run several as each will pick up things that the others miss. Some scanners you can try are:
    * [http://www.malwarebytes.org/mbam.php Malwarebytes]
    * [http://www.superantispyware.com/ SUPERAntiSpyware]
    * [http://www.lavasoft.com/products/ad_aware_free.php Ad-Aware]
    * [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx Windows Defender]
    * [http://www.safer-networking.org/en/home/index.html Spybot S&D]
    If the above malware scanners do not find any malware or can not clear it, you should consider posting in one of these forums for specialized malware removal help:
    * http://forums.spybot.info/
    * http://www.spywarewarrior.com/index.php
    * http://forum.aumha.org/
    * http://www.bleepingcomputer.com/forums/
    * http://www.spywareinfoforum.com/

  • HT1338 I am looking to publish a web site I created in iWeb to another hosting provider.  I have never published this site to MobileMe nor do I have a MobileMe account

    I am looking to publish a web site I created in iWeb to another hosting provider.  I have never published this site to MobileMe nor do I have a MobileMe account.  Can someone please help me?

    Hi Larry, no experience with iWeb, (which is ending soon), but what kind of files & folders does it make locally?
    You need a Wb Hosting service & an ftp client, if you need more info reply with that & what kind of files/folders it made.

  • How do I turn off the "firefox prevented this page from automatically redirecting to another page" dialogue ?

    I am a mac user. I tried to access my bank account, but firefox 3.6.8 prevents me by telling me: "firefox prevented this page from automatically redirecting to another page". This is NOT a dialogue which I can click a button. Instead, nothing happens when I type my bank's URL while a small message appears below the URL field bar. I do not have the OPTIONS under the Tools menu (like on Windows version) and my preferences does not give me any option to turn this thing off. Can any one HELP me as I cannot have access to my bank website?

    See: Firefox > Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    See: [[Options window - Advanced panel#General_tab]]
    See also: http://kb.mozillazine.org/accessibility.blockautorefresh

  • DUPLICATE DATABASE IN ANOTHER HOST WITH THE SAME DATABASE NAME

    Hi all.
    I want duplicate a database(dbteste1 host:wander) to another host(magda) with the same database name.
    My tnsnames in host wander is this:
    DBTESTE1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = wander)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dbteste1)
    DBTEST1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = magda)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dbteste1)
    Tnsping is ok !!!
    Follow the rman command;
    RMAN> run
    duplicate target database to dbtest1 nofilenamecheck;
    and i get the following message:
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE falhou
    ORA-01504: o nome 'dbtest1' do banco de dados nÒo corresponde ao parÔmetro db_name 'dbteste1'
    If i run this command:
    RMAN> run
    duplicate target database to dbteste1 nofilenamecheck;
    and i get the following message:
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: RMAN-20021: database not set
    RMAN-06031: could not translate database keyword
    I´m using oracle 9.2.0.7 on Windows

    Wrong procedure and connection command,
    check Oracle document,
    Duplicating a Database with Recovery Manager
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmdupdb.htm#RCMUG012
    Follow all steps listed.

  • Database Moved to another Host

    Hello All,
    I have a Host where Portal and DB are installed (Using Oracle). Now due to the increase in load i'm planning to shift the DB to another host. After restoring the DB to another host i'll change the parameter "jdbc/pool/EP1/Url" in the Config tool and give the host name of the new DB Host.
    I just wanted to know other than this do i need to make changes anywhere else also.
    Any help on this would be really appreciated.
    Regards
    Vaib

    Hi Vaib,
       I have not done this, but this guide on Java system copy might be of use. 
    https://service.sap.com/~sapidb/011000358700000332442005E
    Hope this is of some use.
    John

  • How do I make Foxfire quit giving me the message Firefox prevented this page from automatically redirecting to another page?

    When I am on some sites Firefox gives me the message Firefox prevented this page from automatically redirecting to another page? and then I have to click Allow. This happens on every single page on certain sites. How can I make this stop all together?

    * [http://kb.mozillazine.org/Menu_differences Firefox > Preferences] > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"

Maybe you are looking for