473,888 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sessions with localhost

Hi I am working with sessions to check if the user is logged in.
This usually works fine and all my .asp-pages checks if: <%
session.Content s("loggedIn")=T rue %>
But this only works on my web-hotel
When I run the same pages on my localhost, it can't find any sessions and I
appear to not be logged In.
I have tried to set my localhost on the "trusted sites" list and "always
allow" in "override cookie handling" in my Explorer.
But no luck.
Do you have any ideas?
Thanks in advance
/Simon K

Jul 19 '05 #1
3 2382
www.aspfaq.com/2157

"Simon K" <si******@hotma il.com> wrote in message
news:3f******** *************** @nntp05.dk.teli a.net...
Hi I am working with sessions to check if the user is logged in.
This usually works fine and all my .asp-pages checks if: <%
session.Content s("loggedIn")=T rue %>
But this only works on my web-hotel
When I run the same pages on my localhost, it can't find any sessions and I appear to not be logged In.
I have tried to set my localhost on the "trusted sites" list and "always
allow" in "override cookie handling" in my Explorer.
But no luck.
Do you have any ideas?
Thanks in advance
/Simon K

Jul 19 '05 #2
thnx
I made the mistake, with the underscore in the host name.
/Simon K
"Aaron Bertrand [MVP]" <aa***@TRASHasp faq.com> wrote in message
news:O7******** ******@TK2MSFTN GP11.phx.gbl...
www.aspfaq.com/2157

"Simon K" <si******@hotma il.com> wrote in message
news:3f******** *************** @nntp05.dk.teli a.net...
Hi I am working with sessions to check if the user is logged in.
This usually works fine and all my .asp-pages checks if: <%
session.Content s("loggedIn")=T rue %>
But this only works on my web-hotel
When I run the same pages on my localhost, it can't find any sessions
and I
appear to not be logged In.
I have tried to set my localhost on the "trusted sites" list and "always
allow" in "override cookie handling" in my Explorer.
But no luck.
Do you have any ideas?
Thanks in advance
/Simon K


Jul 19 '05 #3
> I made the mistake, with the underscore in the host name.

Should have tried http://localhost/ :-)
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10188
by: Dave Mateer | last post by:
Hi Why does the following code allow me to keep the same session when in the same sub domain (ie admin.localhost), yet not when I goto another related domain eg main.localhost? I would like to have the same session on the related domain. I bet the solution is really simple <grin>!... Kind Regards
8
12729
by: Steve Fitzgerald | last post by:
The below login script does work. The form does not seem to be submitting. I keep getting the username and password fields. The only errors I get are notices that email and password and undefined indexes. Here's the login script: <?php session_start(); // includes
5
4560
by: Mark | last post by:
Hi, I want to run in my .Net Windows Form this statement System.Diagnostics.Process.Start(strURLCommand) to open the browser and navigate to the specified URL. The URL is an ASP.Net Web Page with authentication mode="Forms". In this way, the browser displaies the
5
673
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The web.config file is configured as such: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" name="myApplication"/> </authentication>
0
1347
by: Jerad Rose | last post by:
I have an odd scenario. I am working on a hybrid site that uses various development platforms, namely traditional ASP and Lasso (a Mac scripting language). The site uses its own custom sessions stored in a mySQL database, and state is maintained through the URL, passing a session GUID in the URL between page calls. For example: http://localhost/index.html?-session=42FFA3821db04174BBRxjX1B4B48
1
5219
by: Duncan | last post by:
I have a strange problem with sessions in PHP 5. I have a simple script that prints a random number both as a string and a picture on the screen. When I run the script for the first time, it works perfectly. However, when I refresh the page, new updated random number does not propagate to the image displayer script through sessions. The image displayer script continues showing the old number instead of the new random number. I checked the...
2
7733
by: vmalhotra | last post by:
Hi I am new in python scripting. I want to open a Multiple telnet session through once script. In other way i can tell i want to open two linux consoles through one script. I wrote one script, but the issue is I am not able to open multiple consoles. The Scripts which i wrote is as follows: import pexpect
7
296
by: Nico | last post by:
Dear all, I made the following form. <FORM METHOD="POST" ACTION="prova.php"> <b>Combination</b><br><br> Element 1: <INPUT NAME="el1" TYPE="TEXT"> <BR> Element 2: <INPUT NAME="el2" TYPE="TEXT"> <br>
7
2392
by: pek | last post by:
OK, I've been having this problem for quite some time but never until now I really needed a solution. I have never thought of a work around, so I really need your help. Sorry if this has been mentioned already. You can point me to the post and I'll gladly read. I googled this a lot but, first, most people have tutorials for sharing sessions in subdomains, and, second, I have no clue what keywords to use. I am currently developing two web...
0
9959
marktang
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...
0
9593
agi2029
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...
1
7988
isladogs
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...
0
7144
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();...
0
5812
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6012
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4638
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
2
4241
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3246
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.