help with asp.net/JS and cookies

Reply

Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #11
Jun 27th, 2005
hmm
its definetly in the same folder
guess its a server issue :!:

just incase tho

here is my web.config code
  1. <configuration>
  2. <system.web>
  3.  
  4.  
  5. <authentication mode="Forms">
  6. <forms name=".validation"
  7. loginUrl="log.aspx"
  8. protection="All"
  9. timeout="30"
  10. path="/">
  11.  
  12. <credentials passwordFormat = "Clear">
  13. <user name ="abc" password = "123"/>
  14. </credentials>
  15. </forms>
  16.  
  17. </authentication>
  18.  
  19. <authorization>
  20. <deny users="?" />
  21. </authorization>
  22.  
  23. </system.web>
  24. </configuration>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: help with asp.net/JS and cookies

 
0
  #12
Jun 27th, 2005
Fix your "path". Compare what I posted to what you posted!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #13
Jun 27th, 2005
ok
seems there was actually 3 problems
server didn't have 1.1 bound
the path was also an issue

how ever 1 more left

seems i get that lock down anytime i go to any asp or aspx page
but if i go straight to an htm or html page it bypasses the login


any recomendations?

MagusDF
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: help with asp.net/JS and cookies

 
0
  #14
Jun 27th, 2005
Are those HTML files added to your ASP.NET Project? Or are they just "out there" on the server?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #15
Jun 28th, 2005
i'd say floating out there
as i'm not familiar with what that means
the coding was done in notepad so i don't really have a project set up for .net
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: help with asp.net/JS and cookies

 
0
  #16
Jun 28th, 2005
I think they have to be part of the project. I admit that's just a guess. Perhaps someone else can chime in on this thread and confirm that. But since ASP.NET applications are compiled, that's my guess... that any HTML files added to the project are "compiled into" the application, and thus partake in its security.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #17
Jun 28th, 2005
would that be a part of the global.asax or web.config

i tried doing a search on it
found a couple of things on setting up projects using ms dev studio but i'm sure there has to be a manual way of doing it.

that’s why i was initially thinking about the JS element to authenticate the individual pages.

i have 3 asp scripts in the same folder as the core htmls and each of those gets a login but seems the plain htm files aren’t in that group.

i'd think there should be a tag or some declaration for it to be picked up

thanks,
MagusDF
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #18
Jun 28th, 2005
ok got a little more info
sry about the extra post but the edit function isn't there any more

some one suggested
Map htm to run under the ASP.NET dll, which is done through IIS (Home Directory Tab / Configuration / Mappings)

anyone have any references or anything?

THanks,
MagusDF
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: help with asp.net/JS and cookies

 
0
  #19
Jun 28th, 2005
Try this screenshot:

http://www.tgreer.com/daniweb/IIS-html.gif

1) start IIS Admin, from your Adminstrative Tools start menu.

2) highlight Default Web Site (or the appropriate website), click Properties button on the menu

3) click the Home Directory tab.

4) click the "configuration" button

5) click "Add" button

6) In the "Executable", enter the same value that the ".aspx" value has, which will be an instance of the "aspnet_isapi.dll".

7) in the "Extension", type ".html".

9) click "OK, and so on to save your changes and close the IIS admin tool.

That should force HTML files to be processed via ASP.NET, and hopefully then participate in ASP.NET security.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 77
Reputation: magusdf is an unknown quantity at this point 
Solved Threads: 0
magusdf's Avatar
magusdf magusdf is offline Offline
Junior Poster in Training

Re: help with asp.net/JS and cookies

 
0
  #20
Jun 28th, 2005
sooo close but seems enabling that option creates a side effect
i know the user names used to log in work well
but the authentication doen't go through

dissabling the option and going to the aspx pages and logging in it works fine


any ideas?



...sooo close
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 6455 | Replies: 21
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC