First off let me say that http://msdn.microsoft.com/library/de...rttoaspnet.asp
would not work as I see it. Right off, I can't have a cookie.
Anyway, another solution suggests using hidden form fields only helps me to know
that there is a way, I don't know how to pass a hidden form field from my clasic
ASP to ASP.Net
So does anyone have a down and dirty example of ASP passing its session to an
ASPX page using any reliable method other than cookies?
My ultimate goal....
.....is to use SQLRS and to do so, I expect to have to lauch from .Net.
This is an intranet so there is little security, however when my users enter
their login on the default.asp and logs in, querys are run that retrieve the
appropriate security information and stores them in the ASP seesion vars,
loading them from page to page into hidden form fields.
Many of the ASP pages are called and if the session vars are populated
automatically call the subsequent pages, depending on security depositing the
user at the appropriate page or Crystal report rendered.
TIA
JeffP... 6 1631
There is no single great way to share session state between ASP and ASP.NET.
But that doesn't mean you don't have options.
Here are some common ways:
* Store the data in a common database
* Pass data from page to page on the QueryString
* Store the data in cookies
* Use a 3rd party session sharing component
(Here's one: http://www.consonica.com/solutions/d...tch/index.html)
* Use COM Interop to provide an object that both sides can access that
handles the data.
Here's an example of the latter: http://msdn.microsoft.com/library/de...rtToASPNET.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"JDP@Work" <JP*********@sb cglobal.net> wrote in message
news:eD******** *********@TK2MS FTNGP10.phx.gbl ... First off let me say that
http://msdn.microsoft.com/library/de...rttoaspnet.asp
would not work as I see it. Right off, I can't have a cookie.
Anyway, another solution suggests using hidden form fields only helps me to know that there is a way, I don't know how to pass a hidden form field from my clasic ASP to ASP.Net
So does anyone have a down and dirty example of ASP passing its session to an ASPX page using any reliable method other than cookies?
My ultimate goal....
....is to use SQLRS and to do so, I expect to have to lauch from .Net.
This is an intranet so there is little security, however when my users enter their login on the default.asp and logs in, querys are run that retrieve the appropriate security information and stores them in the ASP seesion vars, loading them from page to page into hidden form fields.
Many of the ASP pages are called and if the session vars are populated automatically call the subsequent pages, depending on security depositing the user at the appropriate page or Crystal report rendered.
TIA
JeffP...
Lucas, I don't need to go bi-directional, and I knew that I could use MSSQL to
store all my session NV's, its just a bunch of network round-trips on an already
overloaded network.
Further we're getting heat from the official IT Dev Dept and they want Alpha,
Beta and Load testing data prior to going live, egads, I'm trying to have a
light footprint. The only thing saving us right now is that ITDev isn't
compliant with their own standards so we've got a little le-way.
How'a bout this little diddy?
I think this loaded using the Form or QueryString. Perhaps someone could shed
some more light here.
ASPTransfer.asp x
....generic script omitted...
<%
' Copy all Session variables from the Request beginning with "S" (From ASP)
into
' our .NET session.
' Copy all request variables into .NET Request variables for our next post.
Dim itemSession as Object
Dim i as Integer = 1
Dim iCount as Integer = Request.Form.Co unt - 1
For i = 0 to iCount
if Left(Request.Fo rm.GetKey(i),1) = "S" then
Session.Content s.Add(Request.F orm.GetKey(i), Request.Form(i) )
Response.Write( Session.Content s.Count & "<BR>" & vbCRLF)
else
Response.Write( "<input type=hidden name=" & Mid(Request.For m.GetKey(i),2) &
_
" value=" & Request.Form(i) & ">")
end if
Next
%>
.... script truncated....
TIA
JeffP....
"Lucas Tam" <RE********@rog ers.com> wrote in message
news:Xn******** *************** ***@140.99.99.1 30... "JDP@Work" <JP*********@sb cglobal.net> wrote in news:eD******** *****@TK2MSFTNG P10.phx.gbl:
So does anyone have a down and dirty example of ASP passing its session to an ASPX page using any reliable method other than cookies?
Here's what I use:
http://www.asp101.com/articles/sidne...te/default.asp
-- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
"JDP@Work" <JP*********@sb cglobal.net> wrote in
news:ea******** *****@TK2MSFTNG P10.phx.gbl: I think this loaded using the Form or QueryString. Perhaps someone could shed some more light here.
ASPTransfer.asp x
...generic script omitted... <% ' Copy all Session variables from the Request beginning with "S" (From ASP) into ' our .NET session. ' Copy all request variables into .NET Request variables for our next post. Dim itemSession as Object Dim i as Integer = 1
Did the script you write work?
I think it would be better if you had two pages.
Page 1 - ASP - Copy stuff to Form Variable
Page 2 - ASP.NET - Copy Form Variable to Session
You maybe able to save a redirect by using Server.Transfer on Page 1.
Not sure if you Server Transfer from ASP to ASP.NET tho.
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
JDP@Work wrote: Anyway, another solution suggests using hidden form fields only helps me to know that there is a way, I don't know how to pass a hidden form field from my clasic ASP to ASP.Net
Well, maybe not so neat but it could be a 'solution':
Dump all your data in hidden fields with a <form> tag that has it's
action property set to a aspx page. In that aspx page you can use
Request.Form to retrieve the values.
//Rutger
Lucas, Did it work? Kinda, I'm still getting unknown errors launching my working
Crystal report, so I know something is wrong, debugging by writing my params is
still in process.
I think that the form fields may be the way to go as Rutger has suggested, but I
have little confidence because non of the other sites and MSDN suggest this
method.
TIA
JeffP....
"Rutger Smit" <ru********@hot mail.com> wrote in message
news:10******** *****@corp.supe rnews.com... JDP@Work wrote:
Anyway, another solution suggests using hidden form fields only helps me to
know that there is a way, I don't know how to pass a hidden form field from my
clasic ASP to ASP.Net
Well, maybe not so neat but it could be a 'solution': Dump all your data in hidden fields with a <form> tag that has it's action property set to a aspx page. In that aspx page you can use Request.Form to retrieve the values.
//Rutger
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: james |
last post by:
I am new to php and need some help getting the session variables into
include files. (after-thought, Sorry for the drawn out post but I
really, really need help....;)
Here's what I'm doing..
I have a php request_form that I use 2 different ways: by itself (url
directly to the form) and as an include to be displayed in existing
php pages. This form uses POST to another php_script that performs
serverside validation and db write. If all...
|
by: Mimi |
last post by:
Hello,
I am having trouble using the session vars in
PHP 4.3.9
OS: Win XP Prof
Web Server IIS (is local and there are no links to other servers from
the web pages I work on)
Browser: IE 6.0
The problem I am having is that each time I reload the same PHP page, I get
|
by: ndsoumah |
last post by:
hello guys
I'm trying to get access to variables I put in a session variable from
another page and it fails...
here's the exact situation
main file
page1.php
|
by: Pack Fan |
last post by:
I've noticed that session variables will persist on Mac IE even after all
browser windows have been closed. One must quit the program to clear the
session variables. This presents a security risk for my session variable
based security scheme.
Basically, the risk is that a user will login to my site, close the window
when done and allow someone else to come up to the machine, go back to my
site and be logged into the previous user's...
|
by: Vetrivel |
last post by:
Application architecture : Develop interface between two existing
systems,
a. Enterprise CRM system
b. Web based intranet system.
Environment : Intranet
Server : IIS and ASP.
Script : VBScript and Javascript
Client : 1. IE browser.
2. VBForm embedded with WebBrowser control (MS Internet
| |
by: Paul Yanzick |
last post by:
Hello,
I am trying to develop a book tracking application for my capstone in
school, and am running into a problem.
The application is an ASP.Net application written in C#. The first page you
go to is a login form, which will set several session variables with the
name used to log in, appropriate security level and some other misc
variables, and then will go to a main menu for each particular security
level using Server.Transfer. ...
|
by: Mark |
last post by:
Ok, I know that .net inherently does not share session data across asp.net
projects, but is there any decent work around to this.
We already have a big chunk of our application using the asp.net session
object (using state service). I'd like to start breaking out
our functionality into component projects, but I'd like to get this session
issue worked out first.
Any ideas??
I found this article , but it sounds like kind of a pain.
|
by: VB Programmer |
last post by:
I often use session variables to store the user's security level, and other
important info. How secure are session variables? Can someone decrypt it
and get the information? (This would be especially important to know if the
session vars contain things like credit card numbers.)
Any better, more secure alternatives? How would you store credit card
numbers etc... temporarily if not using session vars?
Thanks!
|
by: Alexander Widera |
last post by:
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ... again
..... null....... and so on and on ....
it does randomly work or not....
what is this effect?
|
by: Jeff |
last post by:
....still new to .net 2005 using VB.
Do I understand correctly that the value of a session variable is actually stored in the server's ram, but relies on the asp.net
session ID cookie that temporarily is placed on the client's machine until the session ends? ...so that you can't use session
variables if the client has disabled cookies on their browser? So, this makes session vars much more secure than hidden fields,
which are transmitted...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |