encoding url problem

hi experts i want use this program to understand the concept of session cookies

<HTML><HEAD><TITLE>Encoding URLs</TITLE></HEAD>

<BODY>

<B>Example encoded hyperlink: </B>

<% String link= response.encodeURL("Process.jsp");

String button= response.encodeURL("Process.jsp");

String sessionID = request.getRequestedSessionId();

out.print(link);

%>

<A HREF="<%=link%>">Click here</A>

<HR>

<FORM METHOD=POST ACTION="<%=button%>">

<B>Example encoded button: </B><INPUT TYPE=SUBMIT VALUE="Submit">

</FORM>

<HR>

<B>Session ID</B>

<%=sessionID%>

</BODY>

</HTML>

and thn i go to internet explorer tools tab thn privacy tab and thn in cookies section i blocked all first party and third party cookies and when i run the above code it doesnot show me the encodedurl that i take in link variable and try to display it

plz tell me where i am wrong

[1115 byte] By [johnray31a] at [2007-10-2 3:59:58]
# 1
t works for me. The one thing I did notice was that even if you set IE to not accept any cookies it still accepts cookies if you use localhost in the address. You have to use an IP address (not 127.0.0.1) to get IE to not accept cookies.
tolmanka at 2007-7-15 23:21:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi thankx direct me

i ll check this after when i obtain an domain name

is it possible to chek it on localmachine becaz i am yet developing my portal and i can run it only my server that is on my own machine

is there any method in which i can use my computer ip address instead localhost(127.0.0.0)

johnray31a at 2007-7-15 23:21:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If you are on a lan you can use the lan ip address.
tolmanka at 2007-7-15 23:21:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...