Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
QuestionSMS Website Pin
Ashish Porwal30-Nov-06 20:15
Ashish Porwal30-Nov-06 20:15 
AnswerRe: SMS Website Pin
Bradml30-Nov-06 20:40
Bradml30-Nov-06 20:40 
AnswerRe: SMS Website Pin
Vasudevan Deepak Kumar1-Dec-06 21:08
Vasudevan Deepak Kumar1-Dec-06 21:08 
QuestionIE7 and session state Pin
Fred_Smith30-Nov-06 12:38
Fred_Smith30-Nov-06 12:38 
AnswerRe: IE7 and session state Pin
George L. Jackson30-Nov-06 15:25
George L. Jackson30-Nov-06 15:25 
GeneralRe: IE7 and session state Pin
Fred_Smith30-Nov-06 22:20
Fred_Smith30-Nov-06 22:20 
GeneralRe: IE7 and session state Pin
George L. Jackson30-Nov-06 22:44
George L. Jackson30-Nov-06 22:44 
GeneralRe: IE7 and session state Pin
Fred_Smith30-Nov-06 23:49
Fred_Smith30-Nov-06 23:49 
OK, look I'm really sorry if I'm being dense here, but i don't hink so... And it's not just popups, but even pages openeed in a new tab or window (eg target="_blank")

Try this page in if you don't believe me:
http://www.psu-tests.co.uk/a.aspx

try it in IE7 and then in Firefox...
the complete code is shown below:

First page (a.aspx) sets a session variable Session("ok") = "abc"

first link opens a new window (b.aspx) and prints out the value of Session("ok")

close it, and then click second link which opens c.aspx in same tab, and this also (tries to) print out Sesion("ok") - but in IE7 it can't because it's been lost....

What is going on?



a.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Session("ok") = "abc"
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<a href="b.aspx" target="_blank">click me</a>
<br />then, after closing that window,
<a href="c.aspx">click me</a>
</form>
</body>
</HTML>


b.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Label1.Text = Session("ok")
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<input name="btn" type="button" value="Close me" onclick="self.close()" />
<br />
<asp:label runat="server" ID="Label1"></asp:label>
</form>
</body>
</HTML>


c.aspx
------
<%@ Page Language="vb" debug="true" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Label1.Text = Session("ok")
End Sub
</script>
<HTML>
<HEAD>
<title></title>
</HEAD>
<body >
<form id="Form1" method="post" runat="server">
<a href="a.aspx">back</a>
<br />
<asp:label runat="server" ID="Label1"></asp:label>
</form>
</body>
</HTML>
GeneralRe: IE7 and session state Pin
Fred_Smith1-Dec-06 0:10
Fred_Smith1-Dec-06 0:10 
GeneralRe: IE7 and session state Pin
Dominic Pettifer1-Dec-06 14:12
Dominic Pettifer1-Dec-06 14:12 
GeneralRe: IE7 and session state Pin
Fred_Smith2-Dec-06 0:37
Fred_Smith2-Dec-06 0:37 
GeneralRe: IE7 and session state Pin
Fred_Smith3-Dec-06 13:18
Fred_Smith3-Dec-06 13:18 
QuestionPERL - reading from a file Pin
xoxoxoxoxoxox30-Nov-06 12:19
xoxoxoxoxoxox30-Nov-06 12:19 
QuestionPassword Expiration in Asp.Net Logins Pin
alyagalal30-Nov-06 3:18
alyagalal30-Nov-06 3:18 
AnswerRe: Password Expiration in Asp.Net Logins Pin
ednrgc5-Dec-06 6:12
ednrgc5-Dec-06 6:12 
QuestionASP.net Web Service & InfoPath Forms Pin
lyntonS29-Nov-06 23:01
lyntonS29-Nov-06 23:01 
AnswerRe: ASP.net Web Service & InfoPath Forms Pin
George L. Jackson30-Nov-06 15:34
George L. Jackson30-Nov-06 15:34 
QuestionDrag and drop the contents of a particular column in a table. Pin
_______________________29-Nov-06 18:05
_______________________29-Nov-06 18:05 
AnswerRe: Drag and drop the contents of a particular column in a table. Pin
Private_Void1-Dec-06 11:16
Private_Void1-Dec-06 11:16 
QuestionMapping a network drive over the net Pin
TheJudeDude29-Nov-06 13:03
TheJudeDude29-Nov-06 13:03 
AnswerRe: Mapping a network drive over the net Pin
George L. Jackson29-Nov-06 13:46
George L. Jackson29-Nov-06 13:46 
GeneralRe: Mapping a network drive over the net Pin
TheJudeDude29-Nov-06 14:05
TheJudeDude29-Nov-06 14:05 
GeneralRe: Mapping a network drive over the net Pin
Dave Kreskowiak29-Nov-06 14:10
mveDave Kreskowiak29-Nov-06 14:10 
GeneralRe: Mapping a network drive over the net Pin
George L. Jackson29-Nov-06 14:44
George L. Jackson29-Nov-06 14:44 
GeneralRe: Mapping a network drive over the net Pin
TheJudeDude30-Nov-06 5:27
TheJudeDude30-Nov-06 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.