Actually i am trying to create change password for users.So for that i am using session variable<BR>but the problem is when i am taking session variable to other asp and givind response.write <BR>it's not showing the values i don't know why i am pasteing my code here for both the files<BR>Could somebody look at it and give me the sugguestions<BR><BR><%<BR>if request.form("a1") <> "" then<BR>Set Con = Server.CreateObject("ADODB.Connection")<BR>Con.Open "DSN=test"<BR>SET RS = Server.CreateObject("ADODB.Recordset")<BR>RS.CursorType = adOpenStatic<BR>RS.Open "Select employee_code, employee_name from EmpMaster where user_name = '" & request.form("a1") & "' and password = '" & request.form("a2") & "'", Con<BR>if RS.EOF then<BR>response.write "<p>incorrect logon credentials supplied ! </P>"<BR>else<BR>session("un")=RS("user_name")<BR>session("pass")=RS("Password")<BR>end if<BR>RS.Close<BR>Con.Close<BR>end if<BR>%><BR><BR><BR>code for second asp file<BR><BR><%<BR>response.write session("un")<BR>response.write session("pass") <BR>'Set Con = Server.CreateObject("ADODB.Connection")<BR>'Con.Open "DSN=test"'<BR>'SET RS = Server.CreateObject("ADODB.Recordset")<BR>'RS.Open "Select * from EmpMaster Where Password = '" & a & "'",Con<BR>'msql = "UPDATE EmpMaster Set Password = '" & a & "' where User_Name = '" & session("un") &"'"<BR>'Con.Execute msql<BR>'response.write "record updated"<BR>'RS.Close<BR>'Con.Close%>