dear Sanjay Kumar

 if cookie enabled, this program can work . but i just want to know why url rewriting 
can not work with cookie disabled.


>  Have u tried with cookie enabled  in your browser ? Is it working?
>Sessions are implemented using cookie. Since session id is stored in browser
>cookie, if cookie is disabled session doesnot work.
>
>Sanjay
>
>----- Original Message -----
>From: ahfei <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, April 26, 2000 6:30 AM
>Subject: Re: session problem
>
>
>> dear laurent andre
>>
>> but i had disabled cookies in netscape
>>
>> at 2000-4-25 17:01:00 your wrote:
>> >That means "your" session manager  works with cookie ! So, if cookies
>> >are disabled, it doesnt work!
>> >i think....
>> >
>> >ahfei wrote:
>> >>
>> >> dear all:
>> >>
>> >> i made a test jsp program to study URL rewriting ,but it seems don't
>work.  .
>> >>
>> >> test1.jsp
>> >> <%
>> >>   session.setAttribute("hello","abcd");
>> >>   response.sendRedirect(response.encodeRedirectURL("test2.jsp"));
>> >> %>
>> >>
>> >> test2.jsp
>> >> <%
>> >>   out.println(session.getAttribute("hello"));
>> >> %>
>> >>
>> >> when i run the test1.jsp with cookie disabled,url rewriting don't work,
>and  test2.jsp return a null string.
>> >>
>> >> can somebody help me?
>> >>
>> >> thanks in advance!
>> >>
>> >>             ahfei
>> >>             [EMAIL PROTECTED]
>> >>
>> >>
>===========================================================================
>> >> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>> >> Some relevant FAQs on JSP/Servlets can be found at:
>> >>
>> >>  http://java.sun.com/products/jsp/faq.html
>> >>  http://www.esperanto.org.nz/jsp/jspfaq.html
>> >>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>> >>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>> >
>>
>>===========================================================================
>> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>> >Some relevant FAQs on JSP/Servlets can be found at:
>> >
>> > http://java.sun.com/products/jsp/faq.html
>> > http://www.esperanto.org.nz/jsp/jspfaq.html
>> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>
>>
>>             ahfei
>>             [EMAIL PROTECTED]
>>
>>
>===========================================================================
>> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>> Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


            ahfei
            [EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to