I have a complete website running in a directory on my webserver. Now i want to webforward an subdomein to this directory. When i directly open the site on my webserver it runs perfect
but the problem is that the sessions i save for the login are empty when i reach them through the subdomain. The problem only exists in ie, in forefox it works perfect.
I have a form that asks the website visitor for the name of the subdomain. I m storing that form variable value in a file. What I m looking for is how to create a subdomain of this name using ASP script?
Example: Suppose the website visitor enters "abc" in the form variable. After the form is submited and validated, I want to create a subdomain as "abc.mysite.com" using ASP Script.
I am developing a site for my employer in ASP, and we host our own servers. The company sells direct to people in the US, and we have authorized resellers sell to international customers. This site applies a customized header and footer (as include files) based on information collected in a cookie.
The point of these customized headers and footers is so that our authorized resellers can have their company info on our product pages. So as long as a visitor starts at a customized "launching page" for a particular reseller, the cookie will have that reseller's headers and footers on every page of our site. This all works fine.
My problem is the url in the browser address bar. It will still say "www.mycompany.com/whateverpage.asp", regardless of what headers and footers are applied. We want all references to "mycompany" erased when customers are looking at our authorized resellers' pages. My employer wants it to have a different url in the address bar that relates to the reseller.
What if we went the subdomain route, registered a more generic domain, and made subdomains off that domain for the resellers? Like, www.widgets.com with subdomains like www.acme.widgets.com? I know this is possible, but how then would I apply these new subdomain urls in the browser windows for pages that are on the www.mycompany.com site?
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).
I have a site that I'm trying to migrate to ASP.NET from ASP, and the foremost stumbling block I'm hitting is session state between the ASP and ASP.NET applications. In order to access this information, I'm doing a HttpWebRequest from the ASP.NET side into an .asp page, passing the session name on the get in order to request it from the ASP side and write it back to the response stream, giving ASP.NET access to it. Of course I change sessions each time I make the call from the ASP.NET side.
Soooooo, I'm thinking to myself, "Self, shouldn't you be able to fake out the server by getting the session cookie from the initial usage of the asp, pass that data to the ASP.NET, and use that to send a request back the ASP side under the appropriate session?"
From a real high level, I enter the site via a .asp page. This page in turn calls .aspx page from within a frame ......
I want to create an administration page which lists all the current users who are on the site at the moment.
I know coldfusion has this feature built in using the SessionTracker class... does ASP have something similar? If not... is there any way I can just iterate through all the session files on the server...?
I have a site developed using ASP, but each page I enter has a different session id when accessing the site using the domain name of the site. When accessing the site from my network and using the internal IP address, it is OK. Any ideas?
I wrote a website, which uses the session to store and track some vars.
Now I am gonna to covert it to desktop application by Activesite compiler 5, however, it doesnot support session , cookie , application() . SO ,I have no idea to find something can instead of session.
My orignal processing: Session -> modify Session var -> store to Database.
There is a problem about ASP session ID. ASP session is implemented by storing session id in a session cookie, but I read this cookie in ISAPI Filter, get a string as following: ASPSESSIONIDQADCQQTS = IAOFCBBCGDGMDGCNJIKPNBAN
But the real session ID is 554851848. (Real sessionID is sessionID property the ASP session object)
Problem is what is relation between them? And how to get real session ID from cookie session ID.
I did a session("adminlogin")=1, if I post it to the same page, it returns true. But if I response.redirect to another page. This value doesn't exist anymore. This is on the actual server where all the ms security is updated.
The same script worked okay on my test server (the security patch not patched yet.)
Has anyone encountered this? How do you overcome it?
I tried searching the net it says the problem lies with a ms security patch. How I wish I can unintall that patch.
I have asp and asp.net web application. When I run it in IE7 in first tab it starts a new session. When I open second tab and browse to the same site the new session is not started (infact I need to have new session there).
Whereas, 2 IE instances generate 2 unique sessions. Only issue is with IE tabs. Firefox also has similar things but lets not talk about firefox here. I am more concerned with IE only.
In my login script I set session("User") = rs("User") the session timeout is set to 20 min
Do I need to setup some kind of update session variable on each page so that the timeout does run out or does iis update the variable aslong as I'm browsing the website ?
And another thing, <% application("something") %> works fine on my test server but once I implement it onto the main webserver I dont get any text out, is there some kind of switch that enables this function ?
My buttons default as you can see in the code. But I now want to take what is already choosen in database and chose apropriate button. Can I use a session to choose a radio button? Code:
I am using the session(loggedin) to see if a user is logged into that section of the site. The problem is that it is timing out on them, is there a way to define the length of the session (I think it times out at 10 or 20 mins currently), but to extend it to an hour or so. Any thoughts.
I've developed a shopping cart app in ASP, to secure transaction by SSL, it 've put only the checkout page in SSL but all other pages i.e. product, cart etc remains on non SSL connection. How can I track user session from non SSL to SSL checkout page as the SessionID changes when shifting to SSL (to prevent session stealing/ hijacking). I'm tracking user session by putting SessionID in cart DB with products. Given below the preview of cart table ....
I have a page that a user is logged in via a session that displays a thumbnail of a picture. The picture is a link to the full size image. When there is no target="_blank" in the code, it works fine.... except it needs to open in a new window. When I add target="_blank" the new open browser window seems to act as a whole new session (even though no session.abandon or anything had been called). I need it to keep the session, but in a new window. What do I need to do, and why is it doing this? Is a JavaScript window opener the (only) way to go?
I'm building a Shopping Cart, but then right away i've stumbled on a little problem. I need to Hold things a costomer is buying in a session. However I can't declare Session as an Aray.
Session("item_id")(2) doesn't work- right? So i was thinking maybe I can create an aray, and then somehow hold it's reference in a session("item_id"). I will apreciate if someone can show me how to save aray into the session, and how to extract it from there later on.
I'm setting up 2 websites for a friend of mine, en I'm have problems with one of the sites.The situation: I have 2 different domains (both in the .NL domain). Both domains provides the possibility for users to log in. The loginscript and the databases are hosted at server 1. The site at server 2 contains a link to the loginpage at server 1. That works well... so far. The problem is that when I log in at server 2, he doesn't accept it. I found out that the Session variable I use isn't recognised. I use Session("protected") to keep track of the users who are logged in. When there credentials are right according to the database, Session("protected")=True and the loginpage gives a redirection to partner.asp by doing Response.Redirect "partner.asp". Trying to log in from server 1 works fine, trying to log in from server 2 doesn't. My questions therefore are: 1. Is the Session variable rememberd by server 2 (although server 1 contains the loginpage en gives a redirection to a page on server 1) 2. What can I do to correct this problem? Your answers are appreciated, and sorry for the possible worse language in this message (English is not my native language ;))
Once a user logs in, I created a session.After he logs out and if he clicks the back he should not see the previous pages and only should be redirected to the main.asp
I am trying to create a login for my webpage so that certain sections are protected. Now, I have the basic login script up and working.the problem comes in recognizing when a user has logged on and when they have not.How would I approach this?
I have read some documentation and it seems that I have to create an application and start my session for each user in there once they successfully log on, but I can't find out HOW to do this.