Advertisement

05.31.2008 at 05:07PM PDT, ID: 23447491
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

User Session State across different domains.

Asked by carrzkiss in Active Server Pages (ASP)

Tags:

Hello All;

  I am developing multiple site(s) that are right now located on my "WinXP Pro"
So I am limited to only using "1-domain and 2-Virtual Domains"
Anyway, to the point of this questions.

The user log's in through the Main domain.
I need the user to use the same Session State through the 2-Virtual Domains as well.
When I try to use what I have, it will not redirect the user to the URL query string.
Instead it just refreshes the Login page.

(From the code listed below in the Code Section)
I added in the Main URL for the Main Domain's Login page which is right now:
MM_authFailedURL="http://localhost/index.asp"

And also for this line:  
"accessesdenied=" & Server.URLEncode
I changed to:
"accessdenied=http://localhost" & Server.URLEncode

Which did not really help any, I thought that it might help in the redirect, until
Relaity struct and I realized that this was a Session's Issue and not a URL Issue.
BUT. The URL was not properly inserted for the URL Query.

I have searched google and found several sites.
This one looks promising.
http://support.softartisans.com/kbview_670.aspx
Especially on the [The ASP-based approach]
But this is a cookie, and I am not sure if this is what I need or not.

The full site: is going to have 3-Domains.
Sharing the same "Users Table" (Access Database)
(They will be seperate Database's with [Linked Tables])

I hope that I have added in enough information for this question.
If you need in other information please let me know.

Carrzkiss

This is my code from my Authenticate.asp
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="0,1,2,3,4"
MM_authFailedURL="http://localhost/index.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
  If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=http://localhost" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
[+][-]05.31.2008 at 07:19PM PDT, ID: 21685699

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.01.2008 at 02:54PM PDT, ID: 21688526

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.01.2008 at 05:42PM PDT, ID: 21688925

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 12:41AM PDT, ID: 21690193

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 02:10PM PDT, ID: 21695705

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.04.2008 at 08:27AM PDT, ID: 21711061

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.04.2008 at 07:09PM PDT, ID: 21715922

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 09:14AM PDT, ID: 21730387

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 12:49PM PDT, ID: 21763547

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.28.2008 at 10:31AM PDT, ID: 21891499

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: ASP (Sessions)
Sign Up Now!
Solution Provided By: carrzkiss
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628