SessionError Page

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

SessionError Page

Postby dotnetprof2005 » Tue 30 Aug, 2005 7:17 pm

I invoke my ASP.NET application from an Oracle portlet(actually i am writting HTML there) and i provide the username and password on the log in screen and click the log in button.There is another "SessionError.aspx" page which will pop up only to tell the user that session is expired.
But every time i click the log in button i see only this page("SessionError.aspx") irrespective of whatever changes i have made so far. I even disabled the javascript
/*if (window.top != window.self)
{

window.top.location=" SessionError.aspx"
}*/

but whenever i give username and password i will always be directed to this page.Then i will try to relogin and go to the same page.that keeps on going and i never move on to view the rest of it.
Can someone please help me on this issue as well.
Thank you very much.
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
dotnetprof2005
dotnetprof2005
junior member
junior member
 
Posts: 9
Joined: Sun 28 Aug, 2005 3:27 pm

Postby Don_HH2K » Tue 30 Aug, 2005 7:52 pm

This sounds more like a problem with the application than the coding of the page's HTML or Javascript. You should check the session timeout settings in your ASP.NET code, or for the time being just disable session timeouts and try to isolate the problem.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 Donzilla/0.8PR1 (WML/1.3)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

SessionError Page

Postby dotnetprof2005 » Wed 31 Aug, 2005 10:02 pm

Thanks for taking time to respond to my questions.
Actually it was not an application issue.But the client machine's browser's security settings had to have the webserver's name under trusted site.
so issue got resolved like that.
Now i am hitting another one which is as follows.Actually we have four different machines as i have shown.
CLIENT<-------->MIDTIER<--------->INFRA<------->WEBSERVER.

Client can not request the page directly from webserver and has to go through MIDTIER. But here is an IFRAME that is executed on the MIDTIER.
<IFRAME servername/Virtual Directory/aspx page height="800" width="800"></IFRAME>
So now the thing is that i log in from client into my application which is residing on Midtier and i try to load that page which has this (<IFRAME servername/Virtual Directory/aspx page height="800" width="800"></IFRAME>) tag and IFRAME is loaded in context to the current page but it is trying to load another page which will be served by the webserver.
The problem here is that Client doesnt have direct access to the webserver so according to my understanding when the IFRAME is loading in the client machine's browser it actually tries to send the credentials of client to the webserver and that is why my request gets no answer from webserver.
I want the request to hit from Client to the midtier and midtier will contact the infra server and infra server will get the response from Webserver and send it to Midtier and then to the Client.
I am clueless.I would so appreciate some help from any one.
Thanks
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
dotnetprof2005
dotnetprof2005
junior member
junior member
 
Posts: 9
Joined: Sun 28 Aug, 2005 3:27 pm

Postby Don_HH2K » Thu 01 Sep, 2005 6:27 pm

I suppose that to do this, you would need to set up //midtier, //infra, and //webserver in the same network environment, whether it be a LAN or even a VPN (so you can locate all three in different spots). From there, you would need to set up a redirect in IIS on //midtier from the aspx file you request on that server to IIS on //infra, which would have another redirect set up to IIS on //webserver. If you want my opinion, though, it would be easier to move the contents of your aspx file to //midtier and if necessary, have it connect to a remote database on //webserver. Therefore, the client would only request data from //midtier while all the data on //midtier would come from //webserver (or //infra and //webserver).
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 Donzilla/0.8PR1 (WML/1.3)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot]