title: Pass Session from c# to vb on same project
body: <p>Hi i have this c# Webform project and i added this existing webform in vb but i needa session to pass the session from c# to vb 
  seems like vb cant get the session even if has the same session name is this even possible to do without the use of database?</p>
  
  <p>C# part:</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
          {
              personnelData();
              ITSystems();
              QRSystems();
              Session.Add("UserName", "040079");
  
          }
  </code></pre>
  
  <p>Vb part:</p>
  
  <pre><code>&lt;body&gt;
  &lt;%
      Set MyConn = server.createobject("ADODB.Connection")
      MyConn.connectionstring = "Provider=MSDAORA.1;User ID=****; Password=****;Data Source=*****"
      MyConn.Open
  
      Dim strSQL, strSessID, strURL
  
      strSQL = "DELETE FROM TBLUSERSESSION WHERE EMPID = '" &amp; Session("UserName") &amp; "'"
      MyConn.Execute strSQL
  
      strSQL = "INSERT INTO TBLUSERSESSION VALUES ('" &amp; Session("UserName") &amp; "', SYS_GUID(), SYSTIMESTAMP)"
      MyConn.Execute strSQL
  
      Set mySession = MyConn.Execute("SELECT SESSIONID FROM TBLUSERSESSION WHERE EMPID = '" &amp; Session("UserName") &amp; "'")
      If mySession.EOF = False Then
          strSessID = mySession.Fields("SESSIONID")
      End If
  
      strURL = "http://sample/rewards/rewards/default.aspx?id=" &amp; strSessID
      Response.Write "&lt;script&gt;"
      Response.Write "window.open('" &amp; strURL &amp; "', '_blank');"
      Response.Write "&lt;/script&gt;"
  
      MyConn.Close
      Set MyConn = Nothing
  %&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Sorry for my bad english</p>