Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I am basically using IF Else End If structure for 2nd
Try It Out of Chapter 12. It works fine for Admin group but
for Members it takes me back to Login Page with user logged in.
In first block of IF it checks for Admin group and in Else I have
code for Members group.
If InStr(1, "Administrators", MM_UserAuthorization) >= 1 Then
MM_redirectLoginSuccess="admin/admin.asp"
Else
MM_redirectLoginSuccess="./home.asp"
End If
What page exactly are you on? The second Try It Out of chapter 12 does not discuss access levels yet.
Anyway, the problem may be caused by the fact that you have already protected the Admin page, so only administrators are allowed to access it. Right now, the code redirects to admin.asp after any successful login.
So, even a member is allowed access and redirected to admin. However, they are not allowed to access admin.asp and are redirected back to the login page. Is this the behavior you are experiencing? If so, check Bullet 12 at page 449 for an explanation.
If this is not the problem, can you post some more code and be more specific about the problem??
Regards,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
What page exactly are you on? The second Try It Out of chapter 12 does not discuss access levels yet.
Anyway, the problem may be caused by the fact that you have already protected the Admin page, so only administrators are allowed to access it. Right now, the code redirects to admin.asp after any successful login.
So, even a member is allowed access and redirected to admin. However, they are not allowed to access admin.asp and are redirected back to the login page. Is this the behavior you are experiencing? If so, check Bullet 12 at page 449 for an explanation.
If this is not the problem, can you post some more code and be more specific about the problem??
Regards,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Thanks Imar for prompt reply.
2nd try out is on Page 451. I want to redirect Members after successful login to home.asp and Administrators to admin/admin.asp after they login. I have changed the code in login.asp and just added the IF structure. And it is working for Administrators properly but it is not working for Members. Members log in okay but they see Login page again instead of home.asp.
Did you read the instructions on page 449? If you did, and they didn't help, can you please post the (relevant) code for the login.asp page?
It's hard for me to guess where you are, what you have changed, which steps you have performed and what is causing the problem, without a good description and some of the code......
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.