473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Session_End Qeustion?

in our multiple applications solutions which is as follows:

Parent :
Global.ascx
Logout.aspx
SubProj1
No Global or logout
SubProj2
No Global or logout

in Global.ascx Session_End Event
string serverName = this.Request.UserHostName;
string appFolder =
System.Configuration.ConfigurationSettings.AppSett ings["ApplicationFolder"];
Response.Redirect(serverName + "/" + appFolder + "/" + "LogOut.aspx");

that when a session is expired in subproj or parent the servername is gotten
and folder where application is deplyed then logout page,,,this working fine
if Session ended normaly .....i tried the following scenario which cause the
below problem:

open the the page in subproj1 as
http://servername/parentproj/subproj/page.aspx
stay there the reset IIS then try to move ...the browser redirect me to
http://servername/parentproj/subproj/logout.aspx and session_end did not
fired?
Hope I explained the problem well....any suggestions?
Nov 19 '05 #1
5 1786
Session does not end as a result of a request -- it ends due to inactivity.
So since the user is not making requests into the server, there's not going
to be any Request or Response object. So using Request and Response in Session_End
doesn't make sense.

-Brock
DevelopMentor
http://staff.develop.com/ballen
in our multiple applications solutions which is as follows:

Parent :
Global.ascx
Logout.aspx
SubProj1
No Global or logout
SubProj2
No Global or logout
in Global.ascx Session_End Event
string serverName = this.Request.UserHostName;
string appFolder =
System.Configuration.ConfigurationSettings.AppSett ings["ApplicationFol
der"];
Response.Redirect(serverName + "/" + appFolder + "/" + "LogOut.aspx");
that when a session is expired in subproj or parent the servername is
gotten and folder where application is deplyed then logout page,,,this
working fine if Session ended normaly .....i tried the following
scenario which cause the below problem:

open the the page in subproj1 as
http://servername/parentproj/subproj/page.aspx
stay there the reset IIS then try to move ...the browser redirect me
to
http://servername/parentproj/subproj/logout.aspx and session_end did
not
fired?
Hope I explained the problem well....any suggestions?


Nov 19 '05 #2
then what should I do in this case?

"Brock Allen" wrote:
Session does not end as a result of a request -- it ends due to inactivity.
So since the user is not making requests into the server, there's not going
to be any Request or Response object. So using Request and Response in Session_End
doesn't make sense.

-Brock
DevelopMentor
http://staff.develop.com/ballen
in our multiple applications solutions which is as follows:

Parent :
Global.ascx
Logout.aspx
SubProj1
No Global or logout
SubProj2
No Global or logout
in Global.ascx Session_End Event
string serverName = this.Request.UserHostName;
string appFolder =
System.Configuration.ConfigurationSettings.AppSett ings["ApplicationFol
der"];
Response.Redirect(serverName + "/" + appFolder + "/" + "LogOut.aspx");
that when a session is expired in subproj or parent the servername is
gotten and folder where application is deplyed then logout page,,,this
working fine if Session ended normaly .....i tried the following
scenario which cause the below problem:

open the the page in subproj1 as
http://servername/parentproj/subproj/page.aspx
stay there the reset IIS then try to move ...the browser redirect me
to
http://servername/parentproj/subproj/logout.aspx and session_end did
not
fired?
Hope I explained the problem well....any suggestions?


Nov 19 '05 #3
What do you want to do? I don't know what your application's requirements
are.

-Brock
DevelopMentor
http://staff.develop.com/ballen
then what should I do in this case?

"Brock Allen" wrote:
Session does not end as a result of a request -- it ends due to
inactivity. So since the user is not making requests into the server,
there's not going to be any Request or Response object. So using
Request and Response in Session_End doesn't make sense.

-Brock
DevelopMentor
http://staff.develop.com/ballen
in our multiple applications solutions which is as follows:

Parent :
Global.ascx
Logout.aspx
SubProj1
No Global or logout
SubProj2
No Global or logout
in Global.ascx Session_End Event
string serverName = this.Request.UserHostName;
string appFolder =
System.Configuration.ConfigurationSettings.AppSett ings["ApplicationF
ol
der"];
Response.Redirect(serverName + "/" + appFolder + "/" +
"LogOut.aspx");
that when a session is expired in subproj or parent the servername
is
gotten and folder where application is deplyed then logout
page,,,this
working fine if Session ended normaly .....i tried the following
scenario which cause the below problem:
open the the page in subproj1 as
http://servername/parentproj/subproj/page.aspx
stay there the reset IIS then try to move ...the browser redirect me
to
http://servername/parentproj/subproj/logout.aspx and session_end did
not
fired?
Hope I explained the problem well....any suggestions?


Nov 19 '05 #4
Thanks I did solve it.

"Brock Allen" wrote:
What do you want to do? I don't know what your application's requirements
are.

-Brock
DevelopMentor
http://staff.develop.com/ballen
then what should I do in this case?

"Brock Allen" wrote:
Session does not end as a result of a request -- it ends due to
inactivity. So since the user is not making requests into the server,
there's not going to be any Request or Response object. So using
Request and Response in Session_End doesn't make sense.

-Brock
DevelopMentor
http://staff.develop.com/ballen
in our multiple applications solutions which is as follows:

Parent :
Global.ascx
Logout.aspx
SubProj1
No Global or logout
SubProj2
No Global or logout
in Global.ascx Session_End Event
string serverName = this.Request.UserHostName;
string appFolder =
System.Configuration.ConfigurationSettings.AppSett ings["ApplicationF
ol
der"];
Response.Redirect(serverName + "/" + appFolder + "/" +
"LogOut.aspx");
that when a session is expired in subproj or parent the servername
is
gotten and folder where application is deplyed then logout
page,,,this
working fine if Session ended normaly .....i tried the following
scenario which cause the below problem:
open the the page in subproj1 as
http://servername/parentproj/subproj/page.aspx
stay there the reset IIS then try to move ...the browser redirect me
to
http://servername/parentproj/subproj/logout.aspx and session_end did
not
fired?
Hope I explained the problem well....any suggestions?


Nov 19 '05 #5
Hi, Raed.

Would you share the solution,
so that someone else may benefit in the future ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
Thanks I did solve it.

"Brock Allen" wrote:
What do you want to do? I don't know what your application's requirements
are.

-Brock
DevelopMentor
http://staff.develop.com/ballen
> then what should I do in this case?
>
> "Brock Allen" wrote:
>
>> Session does not end as a result of a request -- it ends due to
>> inactivity. So since the user is not making requests into the server,
>> there's not going to be any Request or Response object. So using
>> Request and Response in Session_End doesn't make sense.
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> in our multiple applications solutions which is as follows:
>>>
>>> Parent :
>>> Global.ascx
>>> Logout.aspx
>>> SubProj1
>>> No Global or logout
>>> SubProj2
>>> No Global or logout
>>> in Global.ascx Session_End Event
>>> string serverName = this.Request.UserHostName;
>>> string appFolder =
>>> System.Configuration.ConfigurationSettings.AppSett ings["ApplicationF
>>> ol
>>> der"];
>>> Response.Redirect(serverName + "/" + appFolder + "/" +
>>> "LogOut.aspx");
>>> that when a session is expired in subproj or parent the servername
>>> is
>>> gotten and folder where application is deplyed then logout
>>> page,,,this
>>> working fine if Session ended normaly .....i tried the following
>>> scenario which cause the below problem:
>>> open the the page in subproj1 as
>>> http://servername/parentproj/subproj/page.aspx
>>> stay there the reset IIS then try to move ...the browser redirect me
>>> to
>>> http://servername/parentproj/subproj/logout.aspx and session_end did
>>> not
>>> fired?
>>> Hope I explained the problem well....any suggestions?


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Guadala Harry | last post by:
Just wondering if Session_End *always fires* for every Session. I know that IIS times out sessions after a default 20 min (unless changed) and there's no way to know when a user actually closed a...
7
by: Henry | last post by:
I have a question on session_end. I'm trying to log into my database when the session times out, it will store user info into a table. When I got step into a line where I was trying to open...
8
by: Roger | last post by:
When I call the session.abandon() method, it calls the session_end event. When a user closes the browser or clicks the log off button, I can dispose of objects and abandon the session cleaning....
12
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.