 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

February 27th, 2007, 09:32 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2007
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Dreamweaver Authentication
Hi
I have Dreamweaver 2004 MX, i am creating a website with login and dynamic redirects etc.
Should i use the DW tools to tie the site to the database with the login details and then allow it to implement the code for authentication or would i be wise to use different code?
Thanks
|
|

February 27th, 2007, 01:11 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Depends on what you want afterwards with the code and the site.
DW authentication is pretty easy to implement with its point and click interface.
However, the code it creates can be difficult to maintain manually later so you'll need to take that into account as well.
Cheers,
Imar
|
|

February 27th, 2007, 01:24 PM
|
|
Friend of Wrox
|
|
Join Date: Feb 2007
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
basically i have a login page with a dynamic redirect to a 3 frames page.
the main frame is a link to an external site holding content so i want to implement authentication on the parent of the 3 frames so that people cant just type in the parent url and view the content on the external site.
If i have used IIS to setup a web server and have configured it all in DW, created the login page with the links to the db for the checking, if i then created a restricted access page do i have to change any settings or will it know to check the db i have referenced for the login page?
thanks
|
|

February 27th, 2007, 02:01 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I don't know... ;) I read your post three times, but I am unclear how this looks like in the your setup, so I don't know what to recommend.....
Can you explain this in more detail? If you're using ASP, then DW uses the Session for authentication. Maybe that helps you in answering your own question?
Imar
|
|

February 27th, 2007, 08:32 PM
|
|
Friend of Wrox
|
|
Join Date: Feb 2007
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ok, i have set up the test web server, connection to database and made the login page. if i create a new page and want to restrict access, does DW know to link it to the login page so it knows when someone has logged in already so they arent asked to login again? do i have to modify, in any way, the authentication code created?
|
|

February 27th, 2007, 09:14 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Imar i think he is asking if DW has the capability to write forms authentication code through his site and have the login be persisted. (I think he is looking for functionality similar to that of Forms Authentication in .NET)
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
|
|

February 27th, 2007, 09:17 PM
|
|
Friend of Wrox
|
|
Join Date: Feb 2007
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
in a way
DW creates automatically authentication code and i want to know if it references my batabase etc or if i have to set that up and also how functional it is
|
|

February 28th, 2007, 03:57 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
DW comes with two behaviors for authentication:
1. The Login behavior. You use this on the Login page. It writes code to access your (own) database, validates a user and optionally gets Role information for the user that is stored in a Session field.
2. The restrict Access to Page behavior. You need to add this behavior to EVERY page you want to protect. The behavior adds code that checks the user's session, optionally checks the required role for the current page, and redirects to a (user defined) Login page when the current visitor doesn't have the necessary permissions.
All in all, it provides decent authentication functionality for simple sites. However, for anything larger, I usually write (or reuse) my own security mechanism. Also, some server side technologies, like ASP.NET 1.x and 2.0 offer built-in solutions for this....
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

February 28th, 2007, 06:29 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2007
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks for that information - i will look into both options and make a decision although this will be a big site so i will probably want to create my own code.
thanks
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Dreamweaver help |
savinay |
Dreamweaver (all versions) |
1 |
November 11th, 2004 02:00 PM |
| Dreamweaver help |
brandon |
Dreamweaver (all versions) |
1 |
August 11th, 2004 03:02 PM |
| DREAMWEAVER HELP |
dvlnblk |
Dreamweaver (all versions) |
1 |
April 22nd, 2004 02:34 AM |
| using Dreamweaver |
hosefo81 |
Beginning PHP |
1 |
November 21st, 2003 05:32 AM |
|
 |