Cross-Platform Session State
At risk of being flamed for mentioning the N-word here ...
Has anybody yet cracked the knotty problem of sharing Session
state between ASP and ASP.Net sites (within the same domain)?
Last time I looked, the two Session() mechanisms were totally
divorced and separate, making step-by-step conversion of Session
-dependent web sites from ASP to ASP.Net all but impossible.
View Replies
ADVERTISEMENT
It seems that I am assigning to the session rather than comparing against.
I want to compare it in the first peice of code but it seems that I am
assigning to it. When the user first requests the page they are not a
member.Heres my code:
If(Session("IsMember") = "True") then
'Do Nothing
End if
'should still not be True
If(Session("IsMember") = "True") then
Response.write("IS TRUE")
End If
'Response.write is working telling me that the first part of the code
assigned to the session
View Replies
View Related
I hav developed web application using ASP.net 2.0 there are just 2 pages only. Both are works fine in visual studio. But same when i run on IIS 5.1 ....the page without session variable works fine.
But the page with...even the Sub() with session variable won't works.....even it automatically reaches the last sub of the program.
What are the changes i hav to do in IIS / application or web.config file.
View Replies
View Related
we've just set up a subdomain,'demos' for one of our projects that normally works fine. on the login page, if the user enters the correct username/pw, we write session info and then response.redirect to the home page. this works for on the normal site, but session state info is dying on the demo subdomain.
i'm sure the session info is being written since i can see it when i response.write the value. also, the response.redirect uses a relative path, so it's not that we're accidentally changing domains.
View Replies
View Related
We have an ASP site that uses a MySQL db backend. Usename/Password authentication is stored in db tables. We are currently using session variables as a means for validation when the user navigates to new pages. Generally speaking, all this does and has worked fine
The issue is with abandoned sessions. For instance..
Joe user clicks the [X] in the upper right hand container, closing out IE or firefox. IIS will not terminate the session for ~ 20minutes(default), leaving these resources unavaliable.
In our situation, (and possibly a different issue) unless the user clicks the [EXIT] button we've provided, not only does the session persist for 20 minutes, the login state saved in the MySQL table stays locked. Before the User can log back in, they need to call us to reset their state.
I'm looking for some kind of solution to address a user exiting the application abnormally. I am not sure of the correct procedural methodology, but I would think that some kind of process or event trigger would run in the background looking to cleanup stale sessions. Code:
View Replies
View Related
I have a problem where the session state will not be enabled on the server.
We are using Framework 1.1, a non-Sql Server database, and will be moving the
application to a web farm in the future. Is there any way to keep the session
state on a relational database that is not Sql Server? If so, how?
View Replies
View Related
I was thinking about disabling session state on some of my pages by doing this:
<% @ EnableSessionState = False %>
My question is if I disable the session state will the page still reset the session timeout (eg. back to 20min. default) when that page is loaded? I need it to reset the session timeout.
View Replies
View Related
I'm looking for a working example on how to share session state between ASP
and ASP.NET.The solution of Y Yeung of Microsoft seemed to be a good solution but I did
not get the asp part working.Anybody tips, tricks, links ?
View Replies
View Related
I have been storing an object as session variable, such as
set session("oRS") = Server.CreateObject("ADODB.Recordset")
The page then redirects to another page. i need to use this object on the called page, but i encounter an error saying 'User session has expired.' On checking with the code, it was found that the sesion variable has not maintained its state for object 'oRS'. Although, session for string type variable are maintained.
View Replies
View Related
i have a form having hyperlink calling the same page.on click on hyperlink i am
submitting form "Onclick=dosubmit(form1);"
dosubmit{
document.form1.submit();
}
but i am not able to retain session data.how can i retain session data.
View Replies
View Related
I will soon be undergoing a project where I will be migrating four to five web applications, developed in classic ASP, from a single Windows Server 2000 to a web farm that will utilize two, Windows 2003 Servers.
All of the applications utilize user/session management and I know that ASP's built-in session management cannot be carried across multiple servers.
I've been researching products available for purchase out there on the web, which allows you to include new code, which overrides ASP's built-in session management, by using a database to store sessions.
They all advertise that their solutions simply require just one line of code to be added to each ASP pages that uses Sessions, without any other changes to the existing ASP code.
Can someone who has done something similar advise on their experience? Is this really as easy as they are advertising, or are there other issues to take into consideration? Code:
View Replies
View Related
We are running windows 2000 with dot.net framework 1.1 on IIS 5.1. This is an NLB architecture with the session being stored in an SQL DB. We have been coding and deploying using ASP.NET with no problems however the 'powers that be' have recently bought an online booking application which has been coded using classic asp.
We have set the session location in the machin config of the framework stating
mode="SQLServer". Will this ASP use this or continue to store the code InProc?
View Replies
View Related
I am having trouble maintaining Session state between pages within my website. I had someone test the pages on their website and sessions state was maintained between pages, but for some reason, the same pages on my server do not. what might be happening?
View Replies
View Related
I'm wanting to know how I can plug in a session state provider into ASP.NET. Currently you can use either the in-process, stateServer or SQL stores. Is the provider interface open and where is it documented? I've seen that Mono does provide their own state servers but I'm not sure if this is using standard provider interfaces.
View Replies
View Related
Is it possible to store session state for each separate user in a separate process? We have a COM component that we want to use that is not thread safe and has to be isolated. We would like to store this in a separate process for each user.
View Replies
View Related
I used KB 308150 as a guide to create a virtual directory shared by a few webstores that my company hosts. The virtual folder and websites reside on the same box. The shared directory includes code files used by all the webstores.
The problem - when a user adds items to the shopping cart, ***sometimes*** the session variables get reset and all cart information is lost. I can't consistently make the error occur - it seems to be random.
Also, if you have any different ideas on how to share code between many websites...I'm all ears.
View Replies
View Related
wat i need to know urgently is whether Load Balancing will affect my session state for logging in. If it does affect, what should i do?
Currently, the Session("login") is set to false for not logged in and true for log in... pls help i need to know it urgently... in Global.asa its default is "false" Code:
View Replies
View Related
To better manage our secure site we just separated the registration and
checkout sections of our web into separate virtual directories. These new
virtual directories are on the same server as the primary eCommerce website.
This is an ASP site (not asp.net). When this version goes into production it
will be on a 2003 server (IIS 6) with a SQL Server backend (located on a
different server).
Now when the main server passes control to one of the new virtual webs the
session information is lost. I'm having problems finding information on the
web as to how to maintain this information between the web and virtual
directories. It's imperative that this information remain secure so query
strings or anything that would pass visible data is not an option.
View Replies
View Related
I have a org tree with hierarchical display of employees built using
classic asp and vbscript.
I also have list of radio buttons for report names.
I have 1 select box with dates in it.
Then I click on the submit button to view the reports in Crystal. But
when I come back, my org tree is now collapased
I store the employee clicked (radio button), report clicked (radio
button), date (drop down) in hidden fields on submit of the form.
Now when I come back, how can I use these hidden fields to store the
page state?
View Replies
View Related
I am looking for an ASP Open-Source/GPL/Paid Licence based CMS platform for our Intranet. We need the basic modules on there, such as;
User accounts with different access permissions,
News,
Updates,
Intranet Search,
Calendars (multiple ones if possible),
Basic output pages for documentation/Manuals.
Also if possible we are looking for the use of databases where we can add records of products easily for the Intranet user’s reference.
What is more important is the ability to easily intergrate/add-on mods/Applications with the software. Either we will write these ourselves (in time) or amend Open Source applications for our needs.
A site we have been looking at is Convea (www.convea.com). It is really similar to what were looking for to give you an idea - the problem is, is the user interface, lack of company branding etc, and not web-based.
An easy install would be great as we are fairly new to this We are running on IIS5 and MsSQL (with MySQL also for testing purposes). At the moment ASP may be better, but we will also install PHP.
View Replies
View Related
what kind of platform that we can use upon asp.
View Replies
View Related
I had done a website that perfectly works in windows platform. But one of our client said that he cannot work the same in linux platform.
I am submitting my form in the onchange function of combo box. He cannot submit the form when he changes the value of combo box. But it perfectly works in Windows Platform. and the site is being viewed by lot of people and every day there will be reservations.
View Replies
View Related
I have a swf file in one domain and an ASP file in another domain; the swf doesn't not receive the variables form the ASP, how can solve the problem with crossdomain policy?
View Replies
View Related
My code works in IE but not in Netscape. Can someone let me know what should be done in order to view the javascript function also in Netscape. Thanks.
Script:
Quote: <script language="javascript">
function showurl(v){
var layers = document.all.tags("DIV");
layers['show'].style.visibility=v;
}
</script>
Form:
Quote: <input type="radio" name="check1" value="1" onclick="showurl('visible')"> View all Links
<div id="show" style="visibility: hidden;">
<a href='http://www.myurl.com'
target="_blank">www.myurl.com</a><br />
<a href='http://www.someurl.com'
target="_blank">www.someurl.com</a>
</div>
View Replies
View Related
Can anyone tell me how i can access the value of a variable created in javaScript, within an ASP statement and vice-versa if poss??
View Replies
View Related
Anyone know of a way to allow a cookie to be read by multiple domains, or even better a specific IIS server IP? We're looking to track users across multiple domains within our website group.
View Replies
View Related
We have web server A, sitting outside out firewall in the DMZ
Database server (FoxPro) B, sitting inside out firewall
No trusts, seperate domains.
Webserver A, running just ASP (No ASP.NET) needs to access a DB on B, but
just times out
with no error (bottom of page says done).
I have a strong feeling it is because we need to do cross domain pemissions.
I know how to set this up for ASPNET, but not just ASP.
View Replies
View Related
anyone know how to include a cross domain page?
eg: www.mydomain.com/index.asp, want to include www.yahoo.com page.
View Replies
View Related
I have a web application mainly written in ASP. How can I prevent my pages like login.asp and other important pages from Cross-site scripting malicious attacks. What precautions should I take ?
View Replies
View Related
I manage a site with a normal address like: www.mysite.com
I'm using a cookie to store nicks of my users, with a code like this:
----
Response.Cookies("mycookie").Expires = #January 1, 2030#
Response.Cookies("mycookie").Path = ""
Response.Cookies("mycookie").Secure = FALSE
Response.Cookies("mycookie")("nick") = nick
----
and I'm deleting it, if a user wants so, with:
----
Response.Cookies("mycookie").Expires = #January 1, 2003#
Response.Cookies("mycookie").Path = ""
Response.Cookies("mycookie").Secure = FALSE
Response.Cookies("mycookie")("nick") = ""
Response.Cookies("mycookie") = ""
----
(I know, there's too much stuff in the delete procedure!)
Now I'm going to open some new sections of my site, with subdomain
adresses, like search.mysite.com, shop.mysite.com... and I need that
cookie authentication for the main (www) address is working also in
these subdomains.
I red on the Internet that with the DOMAIN property, I can set my
cookie to make it work for every subdomain, with something like:
----
Response.cookies("mycookie").domain = ".mysite.com"
----
.... and it works!
My problem is when I try to DELETE it: after I set a cookie with
..domain property, it seems to become "read only": any my attempt to
delete (or modify) it seems to be ignored.
Results are the same when I try to write it from the subdomain that
created it (www), or when I try from the "chief" address (mysite.com,
without any subdomain).
Where's my mistake?
View Replies
View Related
I have just taken over an ASP application that has a form whereby the user on entering details submits it, where an administrator approves the form. lately I have been getting calls from people who on opening a Finalsed Form (non-editable) to copy similiar data to the new form, are finding the new form disapearing and the Finalised form taking on the new data.
Being new to ASP, I am assuming this would be a session thing, considering the Form number is held in a session variable, as are many other fileds of the form? Is this a common "break" in ASP - a user opening another copy of a form and ending up with cross-contamineted data? I havent included intracate details as at this stage I wouldnt know what to include without including the whole 20 pages of 1300+ lines of code...
View Replies
View Related
Im in contact with the developer who built the other website and he is being helpful in writing the code on the payment confirmation (which only he has access to).
I need to be able to update my database when an order has been completed (from the confirmation page on the other domain). Can you update an access db from another domain? if so are there any security issues? what, if any, permission do i need to set up ie: on the database or on my domain? what is the code to do this?
View Replies
View Related
I'm wondering if it is possible to have an ASP page that "links" to another ASP page on another domain that is generating variables (in the form of a URL string)?
iframes can connect to the ASP file on another domain, however, I don't know how to access that data in ASP.
View Replies
View Related