session "lost"?
i have two pages, one 'alogin.jsp' which validates login infomation, and 'adminhome.jsp' where user are redirected when login is successful and session variable is set. If someone is at adminlogin.jsp and he does not have a valid session he is redirected to the login page.
alogin.jsp
session.setAttribute("id",admin);
session.setAttribute("dpass",dpass);
response.sendRedirect("adminhome.jsp");
adminhome.jsp
<%@ page session="true" %>
<%@ page import="java.io.*" %>
<%
if (session.getAttribute("id")==null || (!session.getAttribute("id").equals("administrator")))
response.sendRedirect("adminlogin.jsp?code=Please%20login%20to%20view%20that%20page!");
%>
Viewing the pages through http://localhost:8080/.. is ok, all pages works fine, but if I am viewing it through proxy server (http://205.123.12.3/..) The problem I am facing now is that my login is successful, but when it redirects me to adminlogin.jsp, the session somehow gets invalidated, or it's not set at all. Anyone knows how to go about troubleshooting this?
Any help is greatly appericiated.

