• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to redirect to one secure zone from multiple subscribed zones

Guest
May 20, 2013 May 20, 2013

Copy link to clipboard

Copied

I have a multiple secure zone setup where a subscriber is allowed to subscribe to multiple secure zone.  Upon login, how do i direct the subscriber to a specific secure zone out of the multiple zones the person is a subscriber to?

TOPICS
Content management and modules

Views

5.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 20, 2013 May 20, 2013

Copy link to clipboard

Copied

Hi,

If a client is subscribed into multiple zones the ideal solution is to use JS to accomplish this.  

- http://kb.worldsecuresystems.com/598/bc_598.html#main_Logging_into_different_Secure_Zones_according_...

Kind regards,

-Sidney

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 04, 2013 Jun 04, 2013

Copy link to clipboard

Copied

Thanks Sidney for the solution. Not quite what I was looking for but it helps me in my train of thoughts.

I ended up using a different approach - upon login, the user will land on a temporary page which will redirect to the proper secure zone landing page,. This temporary page only contains JS which checks for the membership type and then do a redirect based on that. Seems to work fine.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 10, 2013 Jun 10, 2013

Copy link to clipboard

Copied

Sidney, please how can one use one login form to multiple secure zone. Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 10, 2013 Jun 10, 2013

Copy link to clipboard

Copied

Topslovely,

You'll need to create your various secure zones. Also ensure the customer is subscribed into these zones (you can import or add them manually via admin).  Using the generic login form you can then apply the JS solution below to allow customers to access one login form to access these various zones.

If a client is subscribed into multiple zones the ideal solution is to use JS to accomplish this.  

- http://kb.worldsecuresystems.com/598/bc_598.html#main_Logging_into_dif ferent_Secure_Zones_according...

Kind regards,

-Sidney

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 10, 2013 Jun 10, 2013

Copy link to clipboard

Copied

I appreciate your quick response, but this solution demands the user to select from a drop down of a list of zones in the website. What am looking for is one that automatically redirects the user to the appropriate secure zone they have subscribed to without having to select from a dropdown.

Kind regards.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 10, 2013 Jun 10, 2013

Copy link to clipboard

Copied

topelovely,

if you read my reply just above your initial question, I have described my implemented solution to your question in my previous reply above. After login, the user is directed to a transist landing page (contains only JS scripts) which uses JS to check the membership type (you need to add this field to indicate which secure zone the user belongs to), and then automatically redirect to the appropriate secure zone's landing page based upon this. Hope that helps.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

Is it just me or Adobe BC making a simple task very hard. All I want to do is have a single login page, and my clients are directed to their pages from their... why am i reading forum after forum of adding JS or extra code just to make this work. BC is starting to annoy me. I can't code, dont want to even touch code, but yet here we are with a simple prolem and some very hard to work oput solutions. Nice one Adobe, big fail.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 24, 2013 Nov 24, 2013

Copy link to clipboard

Copied

Hi isigin,

Thanks for your explanation, its exactly what im hoping to do.

Any chance you can please share the code you have on that transist landing page or a website url where you have implemented that for the benefit of us non programmers?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 24, 2013 Nov 24, 2013

Copy link to clipboard

Copied

Fubals, It's been a while since I was working on that project. Had to abandon that project.  I think this was the one I had in mind. If i remember correctly, after login, you redirect the user to this page. And using the values from the login fields, you redirect using the JS. Hope that helps.

Cheers!

<html>

    <head>

        <title>Page Redirect</title>

        <meta name="robots" content="noindex" />

    </head>

    <body>

        <div style="width: auto; height: auto;">

        <img alt="" src="/assets/img/loading.gif" />

        Loading....

        </div>

        <script>

            $(function(){

                 var membertype = "{module_customerfield,xxxxxx,xxxxxx}";

                 var subscriber = "{module_customerfield,xxxxxx,xxxxxx}";

                 // replace xxxxxx with your own values

                  // save var to cookies for later use in other places

                 $.cookie('membertype', membertype);

                 $.cookie('subscriber', subscriber);

                  switch(membertype) {

                     case "MemberType1":

                       window.location.href = "home1";

                       break;

                     case "MemberType2":

                          window.location.href = "home2";

                          break;

                     case "MemberType3":

                          window.location.href = "home3";

                          break;

                 };

            });

        </script>

    </body>

</html>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 24, 2013 Nov 24, 2013

Copy link to clipboard

Copied

thanks for posting, will give it a shot.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 09, 2014 Jan 09, 2014

Copy link to clipboard

Copied

I have done this with a client who has 10+ secure zones. It was a pain and BC really does need to improve how we read and access Secure Zones and log users in. We need many more options and much more than the system rendering a 1 or 0 based on log in status. I know there are other options but I am not aware of them all. When I have multiple secure zones I use a mix of CSS and jQuery to achieve what I am after.

I doagree BC does make this a challenge.

For a basic secure zone redirect you can use the following steps:

First setup a page called redirect.html (or your chosen name) and add the following code:

<script type="text/javascript">document.documentElement.className += " js";</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script type="text/javascript">

jQuery.noConflict();

jQuery(document).ready(function() {

     document.location.href = jQuery('.zoneName:first a').attr('href');

});

</script>

<div style="display: none;">

     {module_subscriptions}

</div>

Publish the page. Go into BC and grab the PageID. To do this open the page in the BC admin. Look at the URL bar you will see: site.com/AdminConsole/#!/Admin/WebPages_Detail.aspx?PageID=123456

Grab the PageID numbers.

Insert a Generic Login form and change the action URL:

action="https://site.worldsecuresystems.com/ZoneProcess.aspx?ZoneID=-1&OID=[page-ID-goes-here]&OTYPE=1">

Example: action="https://site.worldsecuresystems.com/ZoneProcess.aspx?ZoneID=-1&OID=123456&OTYPE=1">

When a person logs into a site it will direct them to the landing page of the first secure zone in the {module_subscriptions}.

Note a perfect solution but can work in various cases.

BC could do a lot to improve this situation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 11, 2014 Apr 11, 2014

Copy link to clipboard

Copied

Hi Lynda,

Thanks for this solution.

One thing I added was to have the redirect go to their account details page where I had the following {module_subscriptions,true,false,false,render_json} whcih showed them which secure zones they had subscribed to.

I did not want them to arrive on the first landing page of a secure zone because we have various programs and if they completed level one, and went on to level two, users would be annoyed if every time they logged in it went to a old program.

Thanks again. And I agree, this process should be made WAY easier by BC. Seems like it would be high on the list of updates.

Sean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 03, 2014 May 03, 2014

Copy link to clipboard

Copied

I forgot to add that in order to redirect to a page and not a secure zone id I edited the above JQuery with the following:

<script type="text/javascript">document.documentElement.className += " js";</script>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script type="text/javascript">

jQuery.noConflict();

jQuery(document).ready(function() {

     window.location.href = "MY_URL_HERE";

});

</script>

<div style="display: none;">

{module_subscriptions}

</div>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 09, 2015 Aug 09, 2015

Copy link to clipboard

Copied

Linda, you posted this over a year ago and you've just saved me a client in 2015. Deeply appreciated

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

Lynda, I'm having the same issue, and I'm trying to follow you step by step. 

Questions:

- Where do I add this code to?:

- Do I need to add the different ID page to the list?"

Regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 21, 2016 Dec 21, 2016

Copy link to clipboard

Copied

Thank you Linda! Great work-around solution. I hope that BC is able to address this issue sooner rather than later.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 12, 2017 Jun 12, 2017

Copy link to clipboard

Copied

Hi Lynda,

I was looking for a solution to just this issue and your solution worked for me (2017). Thank you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Jun 14, 2017 Jun 14, 2017

Copy link to clipboard

Copied

I really like what you did here! If you could recommend a resource for this I would greatly appreciate it as I have an immediate need. Thank You Kindly!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 25, 2018 Jan 25, 2018

Copy link to clipboard

Copied

LATEST

So how long will the above solution work?  What am I missing here?  Did everyone go on strike at the end of 2017?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines