473,748 Members | 10,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

One client can't login to our site


We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If
Oct 16 '07 #1
6 2280
Would they have the correct framework installed on their computer?

"Kelly" <Ke***@discussi ons.microsoft.c omwrote in message
news:68******** *************** ***********@mic rosoft.com...
>
We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine
from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If

Oct 16 '07 #2
"Rockn" <Ro***@newsgrou ps.nospamwrote in message
news:ud******** ******@TK2MSFTN GP05.phx.gbl...
Would they have the correct framework installed on their computer?
Clients don't require the .NET Framework to use ASP.NET web apps...

Just a (reasonably) modern browser...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 16 '07 #3
check if cookies are turned off. you can also detect this problem on the
server by settiing a cookie and redirecting to a page that test if a
cookie exists. say in your redirect add login.aspx?cook ie=set, and if
the querystring is set, the cookie should exist. f not, display a page
saying cookies are required to use your site.

-- bruce (sqlwork.com)

Kelly wrote:
We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If
Oct 16 '07 #4
Looks like a cookie issue. I woudl check the cookie settings. Also do they
have the good datetime, time zone ?

You may want to create a test page to check if cookies seems to work fine...

--
Patrice

"Kelly" <Ke***@discussi ons.microsoft.c oma écrit dans le message de news:
68************* *************** **...icrosof t.com...
>
We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine
from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If

Oct 16 '07 #5
Thanks for the tip. I will set it up. But can you figure why they did not
have trouble with the site before the switch to 2.0?

"bruce barker" wrote:
check if cookies are turned off. you can also detect this problem on the
server by settiing a cookie and redirecting to a page that test if a
cookie exists. say in your redirect add login.aspx?cook ie=set, and if
the querystring is set, the cookie should exist. f not, display a page
saying cookies are required to use your site.

-- bruce (sqlwork.com)

Kelly wrote:
We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME")) &
"webaccess/login.aspx")
End If
Oct 16 '07 #6
Thanks. I will check out cookies and their system date/time. I hadn't thought
of that.

"Patrice" wrote:
Looks like a cookie issue. I woudl check the cookie settings. Also do they
have the good datetime, time zone ?

You may want to create a test page to check if cookies seems to work fine...

--
Patrice

"Kelly" <Ke***@discussi ons.microsoft.c oma écrit dans le message de news:
68************* *************** **...icrosof t.com...

We just switched our web application from .NET 1.1 to 2. Once client can't
login out of several that have been successful. They enter a correct user
name and password, click the login button and they are redirected back to
login with no errors or login failure. The same login account works fine
from
other machines at different locations.

This client had no problem logging in before we switched. The login
procedures are essentially the same except for the .NET version. They are
using an updated IE6 browser.

Here is what I'm doing:

Build ticket:
Dim ticket As New FormsAuthentica tionTicket(1, ".TICKETNAM E",
System.DateTime .Now, System.DateTime .Now.AddMinutes (30), False,
Session.Session ID)
Dim authCookie As New HttpCookie(Form sAuthentication .FormsCookieNam e,
FormsAuthentica tion.Encrypt(ti cket)) Response.Cookie s.Add(authCooki e)

Make session variables:
Session("LoginN ame") = prmLoginName.Va lue
Session("DocGUI D") = prmDoc.Value
Session("EmpID" ) = prmEmployeeID.V alue
If prmEmployeeID.V alue 0 Then
Session("UserCl ass") = "Staff"
Else
Session("UserCl ass") = "Client"
End If
Session("GetsCE M") = prmGetsCEMRpt.V alue
Session("GetsPA C") = prmGetsPACRpt.V alue
Session("GetsHO L") = prmGetsHOLRpt.V alue

Check for authentication and session value from the loading page:
If Request.IsAuthe nticated Then
If Session("LoginN ame") <"" Then

[Proceed with page setup routines if successful....]

Else
'Go back and login again
FormsAuthentica tion.SignOut()
Session.Abandon ()
Session.RemoveA ll()

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If

Else

Response.Redire ct(Server_Proto col(Request.Ser verVariables("S ERVER_NAME"))
&
"webaccess/login.aspx")
End If


Oct 16 '07 #7

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

Similar topics

0
3558
by: lionking | last post by:
oracle 9.2 on redhat 7.3 I can't login as system/password as sysdba to dbastudio (I started it by typing oemapp dbastudio). I can login as normal though... what might be the problem?
0
1209
by: Dale Jhonson | last post by:
Client area and login new to Mysql, I would like to store pictures in mysql and have differnt customer accessing them through password. Is there some ready made solutions or tools that make the code that I can buy, without doing to much work myself. thanks Dale J
6
15654
by: Sarah Haff | last post by:
Hello All, Is it possible to have alternating color font for DropDown/List box in html? I have an FatClient application written in C, and I am trying to webify it. The application uses alternative color fonts in a dropdown/list box. So I was hoping to do the same for the web application.
1
1712
by: AG | last post by:
Every night i want to send the new records that are created from my remote client to my FTP site, using a application which sets up an internet connection on the client , exports the data to the flat file and downloads the flat file to an FTP site. Would anyone know how to do this? Thanks in anticipation.
2
1870
by: ad | last post by:
I use Login control's Authenticate event to authenticate use. I find that different users can use the same ID to login in the same time. How can I restrict that the some ID can only login once in the some time
4
1128
by: active | last post by:
Using VS2005 I created a web site which I can view on my machine. I want to show it to someone that doesn't have VS2005 on his machine. Is there some way I can put the site on a CD and view it with his computer? Thanks in advance
1
1961
by: mattsql22 | last post by:
I just installed Red Hat Enterprise 5, along with MySQL. I have run mysql_install_db and I can see the mysql folder that contains the 'mysql' database with the users. Unfortunately, I can't login as root. I have tried without specifying a password, and also with a blank password. And I have tried the SAME using mysqladmin I can login as any generic user without a password, but this of course won't allow be see the mysql table and have the...
2
2661
by: JRough | last post by:
I cannot log into our web site. I have a test web site and a real site. On Friday I could log in and today Monday I cannot log in. I have 2 databases In PHPMyAdmin, the real database and and a test database site which used to be mirrors. Someone else did upgrade work on the real site which I must troubleshoot because they are gone. Symptoms:I can select in myPHPadmin the test database but when I try to switch in PHPMyAdmin from the...
0
1155
by: kavuris | last post by:
I Installed windows server 2003 in IBM Server 3400 and 100 workstations are using that server. My problem I can not login to server while gving appropriate user name and password, after l;oggin immediately coming back to login screen. How to solve this problem in IBM server
0
8989
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
9537
Oralloy
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...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
tracyyun
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...
1
6795
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
4599
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.