Click to See Complete Forum and Search --> : browser instance = new session?


lcscne
02-18-2004, 12:16 PM
If I open a new window via a javascript from within my asp page, does that start a new session?

If not is it possible to communicate with another browser window in asp or do I have to do it via javascript on the client? What I want to do is open a popup that changes some session variables.

buntine
02-18-2004, 12:21 PM
ASP is for server-side code generation and similar things. You cannot use ASP to open a new window..

No, opening a new window will not create a new session variable..

Furthermore, why not just alter the session variables from within the current page? There should be no reason to open a new window.

Regards,
Andrew Buntine.

PeOfEo
02-18-2004, 05:09 PM
Originally posted by lcscne
If I open a new window via a javascript from within my asp page, does that start a new session?

If not is it possible to communicate with another browser window in asp or do I have to do it via javascript on the client? What I want to do is open a popup that changes some session variables. also, when using the session to pass veriables, do so conservativly. There is no sence trying to fill up the session with tons of strings and numbers when you can just as easily pass data (data that is not sencative) through a query string or hidden input.

buntine
02-18-2004, 11:37 PM
Agreed, Session variables can take up lots of resources if used when they are not necesary.

Do a google search or go to www.w3schools.com to find out some other ways of passing data using ASP.