Keep Cookies Or Between 2 Sites

I have 2 separate web sites on 2 different boxes

www.xyz.com on box 1
www2.xyz.com on box 2

Users log into box 1 via regular ASP/Database authentication, and I keep a session variable to mark authenticated users. There's a link that would send users to box #2 at www2.xyz.com. How do I check whether these users are authenticated or not? I do not want to present a login screen again. Is it possible? If so, what are ways to do it, if not
session/cookies?

View Replies


ADVERTISEMENT

Creating Cookies In Global.asa Session_OnStart But Cannot Read Cookies On Subsequent Pages.

In my Session_OnStart in Global.asa, I am setting some cookies. One
of them, I set as follows:

dim UserID
UserID = Request.ServerVariables("LOGON_USER")
Response.Cookies("User")("ID") = UCASE(UserID)

When I immediately log the cookie value retrieved from
Request.Cookies("User")("ID") into the Windows Event Log, I get the
correct value. However, when I try to retrieve the cookie on the home
page of my application using the same code,

Request.Cookies("User")("ID"), it either cannot find the cookie or
cannot read the value. I am retrieving the cookie before all HTML
headers are written. It is my first statement on the page after
Option Explicit. I have even compared the session IDs. The SessionID
created in the Session_OnStart is the same value as the SessionID on
the home page.

I have read that the Session_OnStart only has access to the
Application, Session and Request objects. It does not explicitly say
that it does not have access to the Response object. Also, I was even
able to use Response.Write's in Global.asa to print out the values
although it looked like it had also stopped the session after I did
so. Cookies are definitely enabled on my machine. I have even tried
setting the session cookie's expiration to be persistent for a few
days to see if it was perhaps expiring before I was able to read it
but this did not work either.

Is there something preventing cookies to be created in Global.asa in
the Session_OnStart sub? Is the Response object not available???
Please let me know if anyone else has had this problem or solution.

View Replies View Related

Enable Permanent Cookies But Disable Session Cookies

Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be
reading in online articles?

View Replies View Related

Creating Cookies File And Stored In Cookies Folder

I m creating a cookies in my application and it work properly but i can't see the cookies where it will sotred i checked the cookies folder but i didn't find that I want to create a cookies file as the other web site create and store where other cookies will stored in Cookies folder or Temprory Internet files folder eg:1. arvind@google.co[1].txt this stored in cookies folder 2. arvind@msn[2].txt ....

View Replies View Related

SSL In Sites

I'd like to use SSL encryption to provide secure pages in an ASP.NET application. I know I can specify complete URLs (e.g. https://www....), but for several reasons, I'd like to use relative URLs.

Is there a way to do this and if so how? Also, is there a simple way to specify at a "root" level in an ASP.NET app that ALL pages should be secure automatically?

View Replies View Related

Run Two Sites

We have been assigned the task of running two ASP sites on the same IIS server. Currently we have site A running as http://SiteA on port 80 as the default site. Can we run another SiteB on port 80 as http://SiteB.? We have created another website as SiteB but if i try to configure it with port 80 it gives an error message that "Another site mayalreasy be using that port".

View Replies View Related

Getting Other Sites Using HTTP

Cold Fusion has this tag called <CFHTTP> which allows you to grab the contents of a web site and put it in a variable. It works well because we can grab our dynamically generated header and display it on our cold fusion sites.

We have a couple of ASP sites and we want to do the same thing for them. However I am not sure if ASP has the same exact type of tag. Does anyone know?

View Replies View Related

How To Use Different Sites In IIS On WinXP Pro

Probably way off the mark here, but I have IIS running on my WinXP machine
and I thought I could host multiple domains over the old Win98 method where
I could only have the one?

All I can see at the moment is that I have a Default Web Site, which is
associated to MyPC, and all I can create is virtual directories/folders
within this default location. This means that instead of me being able to
create the desired effect of: Code:

View Replies View Related

Same Sessions In The Two Sites

I am using two copies of that website ... both copies are under same domain but in different folders ... In my site, there are some pages which are not available to everone .. the site requires from a user to enter his/her username and password .. I use session varibles to check if the user is logged in or not on every single page ...

The problem is when I log in the first copy of the site and then move to the second copy ... the second site things that I am logged in !! this is because I use same session varibles name in all copies ... I can fix this problem by changing session varibles names in one of the copies ... but this will mean I have to modify 100 pages ... is there any other solution for my problem?

View Replies View Related

Updateable Web Sites

I'm looking for some code that will enable me to create a updateable web
site. So when I design a the front end all I need to do is drop in some
server variables on the html pages and the asp code does the rest via a
database.

The code would be portable therefore small changes will allow me to apply to
many sites, ideally it should also contain a text editor.Is this feasible ?
I've looked at cms, but this doesn't seem to give enough flexibility or am I
missing something ? and finally asp.net has some sort of portal system
(matrix), how does this fit in ?

For the moment I think the best way forward is this code (or framework) that
will enable the client to update, until a better sollution.

View Replies View Related

One Server - Many Web Sites

I deleloped a "template" web site for a national organization. They have 2000 members and wish to offer this site to each member. Some members will have their own domain, others will not. Regardless, each site will be hosted on one server by the organization. Here is the problem I am facing. Yesterday, they did their first test of this template. The client sent me this url - http://www.atra.com/~atra_member

When I went to the address, I noticed any reference in the site to a session variable defined in the global.asa was not showing up. From past experience, I seem to remember that the .asa file needs to be in the root web, yes? Seeing as they will have two thousand of these templates on the same server, how can I achieve what I am trying to do here. I want each site to be easily modified for each client. The only thing that needs to change on each site is address, name, tel., fax, etc. I thought a single global.asa file and session variables would do this hence my approach.

View Replies View Related

Viewing IIS Sites

I have three PCs connected in a workgroup, all have Windows XP.On one PC, called MF1, I have IIS installed.In IIS I have a virtual directory called dbsite, pointing to a folder c:dbsite.In a web browser I can view the site via http://localhost/dbsite, or http://MF1/dbsite.

how would I allow the other two pcs on the network to access this site.

View Replies View Related

DC's Not Replicating When In Different Sites

We have one domain with a mixture of NT PDC's one Win2K DC (which was the
first installed) and 4 Windows 2003 DC's.

I created our sites as per MS documentation and created the subnets that
match each site. I moved each server into its own site. I then create the
Inter-site transport with IP. I create one call "All Sites" and copied all
sites into it.

Login scripts seem to get replicated eventually. New users don't seem to get
replicated and DC's never seem to find TS license server. There aren't any
messages in the Eventlog on any of the DC's.

If I move all DC's back into the Default_First-Site things start replicating
immediately. Code:

View Replies View Related

One Database And 2-3 Sites

i have one database and 2-3 sites, and i want to connect to this database (access) from all my sites with asp. i have my own server.

View Replies View Related

Extracting Other Sites Content

we have a site, that has a link to a online PC cart that we are registered with. Trouble is, when the user goes to the other site, we obviously no longer have our interface wrapped around the page.

We can do this with an iframe, but it wont vertically stretch the content (a scroll bar appears). Is there any way in ASP, to call a url, and say, insert that url into a <td></td> on our page?

View Replies View Related

Serverside COM-Objects In ASP-Sites

is there a way to use COM-objects in ASP-Sites so that the COM-object have to been registered on the serverside only, but not on a remote client?

View Replies View Related

Blocking Referring Sites In ASP

How do I block referring sites in ASP using VBScript?Like blocking referrer's from:

192.025.215.001
and
altavista.com

View Replies View Related

Searching Remote Sites

Is there some way to search a remote site. I want to create a site that will take some information from a client in a form, and use that information to search a website and take certian results and display them to the client. I think that travel websites like expedia and last minute work like this.

View Replies View Related

Placing Banners On Different Web Sites

How to place advertising banners on say 10 different sites? After clicking on these banner, the control should go to a particular web site. Here do we hv to do coding in 10 different web sites or is there any other procedure?

View Replies View Related

Configuring IIS (5.1) For Multiple Web Sites

Could someone help me find a tutorial (or perhaps instuct me) in the proper way to configure IIS 5.1 so that I can design and test (using localhost) multiple web sites. My problem arises when I try to debug ASPs that contain virtual includes which assume that the ASP exists in the default web site.

Since my ASPs exist in subwebs within the default site rather than in the default site, the included pages are not found and my ASPs return errors. I'm sure there must be a better way to do this but so far I haven't found one.

View Replies View Related

Hosting Multiple Sites

Is there any script that i can use to host multiple sites on my IIS 2003 server?

View Replies View Related

Good Script Sites

I'm looking for some script sites that do things like ecards, calenders, journals etc. Do you know which are the top 3 for ASP?

View Replies View Related

Multi Lingua Web Sites Using ASP

I am currently maintaining a web site for my company's product. The existing site is in English and written in ASP. Currently, my boss plan to add 2 more languages version to the site (Malay and Chinese). So that when user click on the "Chinese" link, the Chinese version of the site will be displayed and click on the "Malay" version, the Malay version of the site will be displayed.

I know that I can either duplicate another 2 sets of the same files with different languages and my job consider done. But the mainatance in the future will be a headache for me. So, I was planning to use XML for this purpose, can anyone show me the proper way that I can learn to use XML with ASP? What type of XML Editor should I use?

Or is there any other way to deal with this purpose? Any good references I can get from the Internet?

View Replies View Related

HTTP Header Difference From Two Sites

I have two sites on my computer. If I display the header information from
site 1, it displays PATH_TRANSLATED as below.

D:kbapplicationprogramuihttpClientPortalkba rticleindex.asp

If I display the header information from site 2, it display PATH_TRANSLATED
as below.

D:kbapplicationprogramuihttpCustomerPortaldi splay2search.asp, except
the here is W with a line going across it. For some reason, when I paste
it here, it changes to , but in IE, it's W with a horizontal line.

View Replies View Related

GPS Coordinate Search For Treasure Sites

I'm making a website that is for logging Treasure sites, and each site has it own GPS coordinate. Like Site#1 has N34'35.3456 W112'45.2345 coordinate and Site#2 has N35'37.3976 W112'44.2265 coordinate and Site#3 has N33'46.3926 W112'49.2855 coordinate. What I need to do is to make a search for sites, by GPS coordinate, that will show up on a list page, that will list all the sites in a radius of 100 miles or so from the entered coordinate, and will list them from the top being the close to the entered coordinate and getting further away from the entered coordinate at the bottom of the list. I have all my sites in a database. So any Ideas PS. I really really like the way that Geocaching.com has there GPS coordinate search.

View Replies View Related

Session Variables In Trusted Sites

I have an asp based site which for various reasons has to go in either
Trusted Sites or Intranet under security in IE7. However as soon as I
place it in either of these zoneI can no longer use session variables.
These session variables work fine when it is in the Internet zone. Any
ideas anyone?

View Replies View Related

Same Page In Two Separate Sites Display Differently.

I have two sites on my computer. I am using a same page in the two sites.
I set my IE to Korean (testing purpose) encoding for testing
internationalization.

When I hit the same page in two separate sites, one shows the foreign
characters in Korean, but the other shows garbage-looking characters.

I am using the exactly the same page.

View Replies View Related

Varify Existance/mearge/rename Of Web Sites

I am developing a web site which includes a database containing website URLs. I need to check time to time about the status of these URLs whether those are merged with otherweb sites , renamed or expired. I want to make this process automated and a report generation which directly displays status of each site URL.

View Replies View Related

Cookies

I've added a cookie and I am able to read it when using the same window but
if I load up a new window and try to access it, it can't find the cookie.
Any one know why?

View Replies View Related

Cookies?

I am creating a user tracking app that tracks a user one of two ways...

1)First Method is cookies
2)Second Method MS SQL DB

I first check if the users browser accepts cookies if not I go to the db. If the user accepts cookies then I check for a specific crumb if it does not have the value I am looking for I kill it and rewrite it. This is working fine (im in the middle of testing it). The problem is I decieded to test the script with NN7 and not turn cookies off but block cookies from my site and all fell apart. The condition that I have set (detect if cookies are enabled) does not stop the script from trying to set a Session Variable because the browser accepts cookies and to keep a long story short it goes into an infinite loop because the script is looking for a Session value and Its not being stopped becaues the script thinks its alright to write cookies! Is there a way to detect if a user has your sites cookies blocked? This is important because Server.CreateObject("MSWC.BrowserType") will return .Cookies = True and you will not know that your script is not executing properly because a user has your sites cookies blocked but excepts them elsewhere...

View Replies View Related

Should We Use Cookies??

After a login we have a menu from where we have access to different operations such as add ,delete,update.. but if a user enters the appropriate URL he has access to these operations with out proper authorization.how do we solve this.

should we use cookies,if so how exactly?

View Replies View Related

Log-in Cookies

I've built a website which requires a user to log-in to access the site. I have already built a page that enters their details into a db (register.asp), and another page where the user enters their email address (the log-in ID) to actually log-in (login.asp).

How can I use a cookie to automatically log a user in??

More specifically, what are the commands to set a cookie (upon successful registration) and access it (upon re-logging in)?

View Replies View Related

Using Cookies

Hey i've spent the last few hours trying to work this problem out about cookies.

When a user logs in to the site the login.asp page checks the database to see the personal page that the user re directs to e.g if bob brown logged in he would be redirected to bob.brown.asp. This is stored in a field in the database table along with the username and password.

i would like to put a cookie onto the users computer that remembers the url they were redirected to so when they press the main page button it would look for the cookie and see what url they are meant to be redirected to and take them there

My current login system is this ....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved