Updated : Simple ASP.Net Login Page

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2005
Posts: 18
Reputation: millers_35 is an unknown quantity at this point 
Solved Threads: 2
millers_35 millers_35 is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #31
Apr 7th, 2005
LOL but what cracks me up about this error tho is that when I try to login with just garbage as the username and password 3 times in a row until I get directed to denied.aspx then hit the back button and put in a correct username and pass it works and the Session("Logged_IN") variable is set to "Yes" on my default page. I am like you I am lost here. LOL

Miller
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #32
Apr 7th, 2005
I ran your code...and it works.

So something is messed up with either your settings in the browser or IIS?

Hehe..... sorry I dont have a more definite asnwer.
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 18
Reputation: millers_35 is an unknown quantity at this point 
Solved Threads: 2
millers_35 millers_35 is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #33
Apr 7th, 2005
I have tried IE and Mozilla to run the application and from different computers. I started a completely new project with basic controls with the code and I still get the same thing. It redirects me back to login unless I type incorrect username and pass 3 times then try again it finally redirects me and then all the other forms work correctly and the session variable holds throughout. I'm going to give you my IIS setup and maybe u might see something I have wrong.

IIS 5.1 XP Pro

Virtual Directory tab
Read - checked
Log visits - checked
Index this resource - checked

Execute Permissions - Scripts only
Application Protection - Medium

Configuration button
- Option
- Enable session state - 20 min
- Enable buffering - checked
- Enable parent paths - checked
- Default ASP Language - VBScript
- ASP Script timeout - 90 seconds
- Debugging
- Enable ASP server-side script debugging
Directory Security tab
Anonymous access - checked
Allow IIS to control pass - checked

Basic authentication - checked
Integrated Windows authentication - checked


Miller
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #34
Apr 8th, 2005
I am sorry...but I am at a total loss.
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1
Reputation: aromsayc is an unknown quantity at this point 
Solved Threads: 0
aromsayc aromsayc is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #35
Apr 15th, 2005
For the login.aspx it works properly. It's great. How about odbc? I had tried to use DSN by using ODBC. This is the error "Operator is not defined for type 'DBNull' and type 'Integer'". My e-m: aromsayc@hotmail.com

Aromsay
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #36
Apr 15th, 2005
Originally Posted by aromsayc
For the login.aspx it works properly. It's great. How about odbc? I had tried to use DSN by using ODBC. This is the error "Operator is not defined for type 'DBNull' and type 'Integer'". My e-m: aromsayc@hotmail.com

Aromsay

Did you use something like this for creating a DSN connection?

Dim conn As New OdbcConnection("DSN=TestDSN")


Oh, I should mention this now. I do not reply directly to emails, and rarely directly to private messages here (some exceptions). If it is something that I can answer here that will help everyone I would rather do that. So please do not request me to send you an email to answer your specific problem. Fact is, if you have an issue, others may as well.
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 5
Reputation: blacknight is an unknown quantity at this point 
Solved Threads: 0
blacknight blacknight is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #37
May 5th, 2005
i have the same problem as millers_35 i do the authorization and if it returns true i redirect to the default.aspx and create the session (ok other way round first session then the redirect) as put in the tutorial so it can only redirect if i am logged in and it has to create a session otherwhyse it msu give an error. ok so i am on default then and the session is disapeared :-( ... i am geting realy frustrated about this. do you have any idea on what is going wrong ...btw i get the same problem on my real webserver hosted by easycgi so it cant be a settingsproblem of my iis
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #38
May 5th, 2005
Ok, I am sorry to say I do not follow what you are saying.

You get an error when you try to login ? How do you mean it has to create a session otherwise (correct spelling) it gives an error?

Here is what I would do:
1. I would Recreate a new project, new directory, and build it in stages. i.e. Paste in the HTML code, and compile the code. Paste in the VB.Net code, complie, etc... that way you will see any errors that come up in the code.
2. Provide the error message you are getting and I may be able to give more details.

As I told millers_35, I am really stumped. I have done this same application about 20 times on numerous machines to boot with no issues like this.

Sorry I couldn't provide more help.

On that note, have you tried doing a simple ASP.Net page, like retrieving data from the db? i.e. Create a simple datagrid populating with a simple select statement?


Originally Posted by blacknight
i have the same problem as millers_35 i do the authorization and if it returns true i redirect to the default.aspx and create the session (ok other way round first session then the redirect) as put in the tutorial so it can only redirect if i am logged in and it has to create a session otherwhyse it msu give an error. ok so i am on default then and the session is disapeared :-( ... i am geting realy frustrated about this. do you have any idea on what is going wrong ...btw i get the same problem on my real webserver hosted by easycgi so it cant be a settingsproblem of my iis
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 18
Reputation: millers_35 is an unknown quantity at this point 
Solved Threads: 2
millers_35 millers_35 is offline Offline
Newbie Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #39
May 5th, 2005
Sup guys, I finished the project I was working on. I appreciate the help I got from Paladine. His tutorial helped be quite a bit on getting started. I ended up using cookies instead of session variables. I think the problem I was having with the session variables dropping was because of where the variables were getting stored. Paladine do the variables get stored in server memory or on the local machine memory? That being asked I think the problem lies within this from the web.config file
  1. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
  2. cookieless="false" timeout="20" />

the sessionState mode will take on different settings "SQLServer, InProc, and StateServer. Could it be that he doesnt have his set to the correct value. Again I am still learning as well and do not have a definite answer and hoping someone could correct me on this if I am wrong.


Miller
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Updated : Simple ASP.Net Login Page

 
0
  #40
May 16th, 2005
FYI

Registration Page completed : ASP.Net Registration Page

And miller_35, as far as I know (no resources at my work to verify), but session variables are on the User Side (i.e. When the application is closed, or you close your browser, the session is ended.)

Thanks for the compliments. Folks let me know if there is anything else anyone wants to have a tutorial on for ASP.Net.
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC