|
s****y 发帖数: 983 | 2 //if iframed, redirect parent window, otherwise redirect self
//(not considering depth of iframe > 1)
if(top!==self)
{
self.parent.location = loginUrl;
}
else
{
self.location = loginUrl;
} |
|
|
m**********e 发帖数: 19 | 4 Check Web.Config
There must be something like this:
timeout="1440"/>
...
This is ASP.NET's form authentication. It will redirect you to the login page
when you try to access protected pages without login. |
|
D*****n 发帖数: 363 | 5
Still not quite right here. After I check the "auto-log-me" box and
log in, Firefox shows the login cookie will expire in 30 minutes. By
msdn document, it should expire in 50 years. After I log out, the
cookie is gone from the Firefox browser. It's almost the same in IE.
My authentication setting is pretty simple:
loginUrl="SignIn.aspx"
protection="All" path="/" />
|
|
n*******d 发帖数: 4 | 6 折腾了二个星期了 :(
Tomcat 4.0 on Linux, trying to connect to MySQL
It can't find the data source I defined and throws this error:
javax.servlet.ServletException: Cannot create resource instance
I'm not sure if there's any security setting preventig this?
I can access MySQL using the following jsp code:
Class.forName("org.gjt.mm.mysql.Driver");
Connection dbcon = DriverManager.getConnection(loginUrl,
loginUser, loginPasswd);
Statement statement = dbcon.createSta |
|