From: JB on
Hello Community

Using ASP.NET, C# and Sql Server I produce a report by declaring session
variable and passing the variables to a report like so:

Session["ssnum"] = varssnum;
Session["lname"] = varlname;
Session["fname"] = varfname;
Session["dob"] = vardob;
Session["phone"] = varphone;

ResponseHelper.Redirect("lFolder/reports.aspx?varssnum;=" +
row.Cells[1].Text +
"&varlname=" + row.Cells[2].Text + "&varfname=" + row.Cells[3].Text +
"&vardob=" + row.Cells[4].Text + "&varphone=" + row.Cells[5].Text, "_blank",
"width=800, height=1000, fullscreen=no");

The problem is after that I click on another web page (aspx) that needs
to use those same session variables.

Since they are session variable is there anyway that the other web page
can access those session variables?

Thanks
Jeff

--
JB
From: Mr. Arnold on
JB wrote:
> Hello Community
>
> Using ASP.NET, C# and Sql Server I produce a report by declaring session
> variable and passing the variables to a report like so:
>
> Session["ssnum"] = varssnum;
> Session["lname"] = varlname;
> Session["fname"] = varfname;
> Session["dob"] = vardob;
> Session["phone"] = varphone;
>
> ResponseHelper.Redirect("lFolder/reports.aspx?varssnum;=" +
> row.Cells[1].Text +
> "&varlname=" + row.Cells[2].Text + "&varfname=" + row.Cells[3].Text +
> "&vardob=" + row.Cells[4].Text + "&varphone=" + row.Cells[5].Text, "_blank",
> "width=800, height=1000, fullscreen=no");
>
> The problem is after that I click on another web page (aspx) that needs
> to use those same session variables.
>
> Since they are session variable is there anyway that the other web page
> can access those session variables?
>

Yes, the other page can use the session variables (a common shared
memory) on the Web server, which can be used between pages.
From: Harlan Messinger on
JB wrote:
> Hello Community
>
> Using ASP.NET, C# and Sql Server I produce a report by declaring session
> variable and passing the variables to a report like so:
>
> Session["ssnum"] = varssnum;
> Session["lname"] = varlname;
> Session["fname"] = varfname;
> Session["dob"] = vardob;
> Session["phone"] = varphone;
>
> ResponseHelper.Redirect("lFolder/reports.aspx?varssnum;=" +
> row.Cells[1].Text +
> "&varlname=" + row.Cells[2].Text + "&varfname=" + row.Cells[3].Text +
> "&vardob=" + row.Cells[4].Text + "&varphone=" + row.Cells[5].Text, "_blank",
> "width=800, height=1000, fullscreen=no");
>
> The problem is after that I click on another web page (aspx) that needs
> to use those same session variables.
>
> Since they are session variable is there anyway that the other web page
> can access those session variables?

The whole *purpose* of session variables is to save application data
from one page request to the next--within an ASP.NET session, however.
If you go to a page that isn't in the same application, it won't work.