46

Login And Login Redirect Issues

1) If you click on  Digital Access Pass’ link in the left sidebar of your WP admin dashboard but get a ‘Page Not Found’ error, then do this :

Login to your dap admin dashboard here:

http://yoursite.com/dap/login.php   (replace yoursite.com with the name of your site)

Then after you login, go to dap setup -> config -> advanced -> URL of your login page and make sure the ‘URL of login page’ points to a VALID working url.

When you click on the dap link in the WP admin dashbaord, dap takes you to whatever you set as the login page in ‘URL of login page’.

You can also login to dap admin dashboard outsite of WP here:
http://yoursite.com/dap/login.php

2)  If upon login, DAP is not redirecting users to the configured/desired page, then please read on…

There are 2 logged-in redirect settings:
1) Product-level login-redirect URL which is Logged-In URL field on the dap Products/Levels page
2) Global login redirect under DAP Setup -> Config -> Advanced -> ‘URL to which the user is redirected to upon login’

If the user has access to only 1 product and product level Logged-In URL is set, then DAP uses the product level settings.

If the user has access to multiple products OR if the product level Logged-In URL is NOT set, dap uses the global login redirect.

Make sure these settings are setup correctly when you have login redirect issues.

3) If your users complain that when they login, they are told :

Sorry! You do not have access to this content
Sorry You cannot access this page.

[You are already logged in. Please click here to continue…]

BUT when they click on the link.. it says… the same thing again.

Then here’s the solution:

It can happen when the users are being redirected to a page upon login to which they do not have access.

So check your product level / global level login redirect settings.

Then check the user and make sure the user has access to the content to which you are redirecting the user upon login.

So… if you say redirect user to a protected page upon login and say the protected page is marked as ‘available only to paid users’, then make sure your users are marked as paid in manage users page.

Or make the content (to which you redirect user upon login) be available to all registered users (free / paid). Just mark the content as ‘available to free users’ in the content protection area in dap products page.

4) Endless Redirect – or “Too Many Redirects”

If upon login, you receive an error message that there’s an endless redirection, and the browser eventually times out,  then the possible reason could be that you created a custom error page and protected the error page itself. So when a non-member or user that does not have access to content, tries to access it, DAP will try to redirect to the error page, but if the error page itself is protected, then that will result in another redirect to error page… resulting in endless redirects.

Another possibility: Your “Error Page URL” has %%LOGIN_FORM%% code.

In that case, when you log in as a member, member does not have access to post-login URL (check if you have added that to the product), DAP redirects to error page, error page has login form code which redirects to post-login URL, member does not have access to it, DAP redirects to error page…. and on and on. That’s how it ends up in too many redirects.

So, the main highlights…

  1. Do not protect the error page as part of ANY DAP product
  2. Do not put the %%LOGIN_FORM%% code in your error page
  3. Do not protect the login page as part of ANY DAP product
  4. Add the “Post-Login URL” page to the product in question, so anyone who has access to that product will also have access to that page.

If you protect content under 1 product, then it automatically gets protected from all non-members. A casual visitor can not access content that is protected under any of the dap products. Only members that have access to the product, can access content dripped under the product.  If a member says that they are not able to access content, it could be because:

1) their access has expired (check dap manager users page for user->product access start and access end date)

2) their access is still valid, but the user has been a member for just say 2 days and the content they are trying to access, is set to drip on say day 3.

3) the user is marked as a free user (in dap manage users page) but the content they are trying to access is marked as ‘available to paid users only’ in dap products -> content protection area.

4) their product status is unconfirmed (check Product Status in DAP manage users page). If it’s a double-opt-in product, the user is going to receive a confirmation email upon signup. The user needs to complete confirmation to get access to the product. DAP admins can manually change user’s product status by clicking on ‘Modify’ under ‘Product Access’ in dap manage users page and updating the product status to Active.

5) The user has access to multiple membership levels and the some of the same content is being dripped under multiple membership levels.

Generally you should use Product Chaining rules to automatically remove user’s access to lower level product/ membership level upon upgrade to higher level product / membership level to prevent some of the  same content being dripped on the same user with different drip settings. This way a user will not have access to same / duplicate content under 2-3 different products that he/she owns.

5) Auto-Redirection to previous page after logging in

Starting DAP v4.1, here’s how the log-in redirects work….

1) If they’re logging in from a stand-alone login page or from the widget on your home page, then DAP treats that just as a “Member just trying to log in to their member’s area” and it will use the global or product-level login-redirect URL for that user.

2) However, if they tried to visit a  protected URL, and DAP challenged them because they weren’t logged in, and presented them with a login form on that same protected page, and if they log in from that form on the protected page, then DAP treats that as someone was trying to get to a protected URL, they couldn’t because they weren’t logged in, now that they’ve logged in, let’s take them back to that same page that they were on before the logged in.

Click Here to Leave a Comment Below 46 comments
Dana - February 23, 2011

Is there a way to return users to the protected post/page they were on after they login rather than redirect them to their profile or another page?

Reply
Veena Prashanth - February 26, 2011

If you are on DAP 4.0, then DAP will return users to the protected post/page they were on after they login rather than redirect them to their profile or another page.

Reply
Dana - February 28, 2011

I upgraded to DAP 4.0 and LiveLinks 1.5 but users are still being returned to their profile page rather than they page they logged in from. Is there a config change I need to make in the admin area? Thank you.

Reply
Starters Guide — DAP Documentation - April 5, 2011

[…] You can redirect users wherever you want upon login. See this article on how to redirect. […]

Reply
jamie - April 29, 2011

I’m having the same problem. If they login on a page, I want them redirected back to it. They are not being sent back.. and I have 4.0.

Reply
Veena Prashanth - April 30, 2011

Hi Jamie/Dana,

If the user lands on a login page and tries to login directly via the login page or if the user tries to login at the home page via the dap login/logout widget, dap considers it as a ‘user just trying to login’, so in this case, dap uses the ‘product level Logged-in’ URL or global ‘logged-in URL’ to redirect users upon login.

BUT if the user tries to access protected content and gets a sorry/error page, and then tries to login, then DAP remembers what URL they were trying to access prior to logging in, and the user will always be redirected back to the page they were trying to access before logging in.

Pl download very latest version of dap 4.1 (beta) and live links (1.6), and upload it to your site and test. It should work.

Reply
Muhammad Asif - August 16, 2011

is it possible that user get logged into members area just after signup using free signup form?

Reply
Veena Prashanth - August 16, 2011

No. Generally the DAP free signups require opt-in by the user. Only upon double-opt-in confirmation, DAP releases the login id/password.

Reply
Colette Mason - February 29, 2012

I am logging in as DAP admin and I am getting the “Sorry, you do not have access to this content. If you are a free member, then click here to purchase access.” message.

My product catalogue is quite complicated, with all 20 levels pointing to a /members-home page for their member welcome information.

Has that got something to do with it?

Cheers for any tips.

Reply
Dana - February 29, 2012

The DAP admin account doesn’t automatically have access to protected content. You must assign access to a product as if it was a user account.

Reply
Colette Mason - February 29, 2012

Ahh. Thanks 🙂

I can sort it now. Cheers 🙂

Reply
Colette Mason - February 29, 2012

Hmm. I have deleted all the products thinking I would start again, and just get 1 working at a time,

I have created a new product with access to 3 pages, members home, product home and contact us.

All 3 come up with the same error 🙁

I have removed the protection from the members home page and I get the same problem.. I get the padlock page.

Not sure what to try next 🙂 I’ll clear the browser cache in case that helps…

I have tried in a browser I haven’t been using – same problem….

Reply
Colette Mason - February 29, 2012

I’l reinstall DAP and remove the old database tables, see if that helps.

Clearing the cache didn’t help…. 🙁

Reply
Colette Mason - February 29, 2012

Hmm. I still get the padlock screen with any page I protect. I think I’ll have to log a ticket..

Reply
Veena Prashanth - February 29, 2012

Colette,

1. Are the pages protected under the product to which the user has access?

NOTE: The user can only access protected content if the content is protected under the product to which the user has access.

2. Do you have any cache based plugins enabled?
If yes, pls disable and test.

3. If the user is marked as free user in dap manage users page, the user can only access content marked with ‘isFree’ = Y in the Content Responder section in dap products page.

The content the user can access is also controlled by the drip setting.

So if you protected content and set the drip start to day 10, only users that have been members for over 9 days can access that content. And users marked as FREE in DAP Manage Users page can only access content that is dripped with isFree=Y under that product.

See if any of this applies in your case.

Reply
Peter - March 22, 2012

When I try to login to the DAP dashboard by using the URL:

http://interviewquestionandanswers.net/dap/login.php it automatically directs me to the following page:

http://www.interviewquestionandanswers.net/members-home/

I cannot get into the dashboard. How do I fix this?

Peter

Reply
Veena Prashanth - March 22, 2012

It means you are logging in using a non-admin Id.
You can login to your dap database via phpmyadmin on your webhost and find your admin Id (account_type=A) in dap users table.

http://www.digitalaccesspass.com/doc/troubleshooting-login-issues/

Reply
Ujjal Ghosal - May 7, 2012

I want to have a functionality like this:
1. When a member logs in from non-member home page, she lands on the member home page;
2. When member logs out, she is taken to a page where she has an option to log back in again (I am using %%LOGIN_FORM%%);
3. On logging back, she lands on the member home page.

However, step 3 does not work due to auto-redirection (point # 5 mentioned by Veena). Is there a way to override the auto-redirection?

Will it not be better if %%LOGIN_FORM%% function comes with a redirection parameter?

Reply
Ujjal Ghosal - May 7, 2012

…What happens now is that on logging back in, the member remains in the logged out page with following message:

You have been successfully logged out.
To access site again, log back in:
[You are already logged in. Click here to continue…]

Reply
Ujjal Ghosal - May 7, 2012

Actually, the only time I land onto my member home page directly is after signup/activation process (from the login screen with success message).

At all other times, even from login page link on non-member home page, I end up coming back to same page with msg:
[You are already logged in. Click here to continue…]

I have got both global and product level URL setup correctly…
‘/login’ setup as login page
‘/member-home’ setup as page to land after log in.

Reply
Veena Prashanth - May 7, 2012

Ujjal,

>At all other times, even from login page link on non-member home page, I end up coming back to same page with msg: << Does this happen only if you first logout, and then log back from that logged-out page? Or does it happen even upon a regular login from the /login page ? So you go here first to login: http://YOURSITE.com/login

You login and upon login you are expecting to be redirected to :
http://YOURSITE.com/member-home

But instead you endup on a page with this message:

[You are already logged in. Click here to continue…]

What page do you land on where you see this ‘already logged in’ message? What’s the url in the browser ?

Do you have any CACHE based plugins enabled (like WP super cache / total cache )?

Are you using OptimizePress theme?

Reply
Hugo - May 28, 2012

Just upgraded to 4.3.1 and cant save Post-Login URL (product level). I push the save button but it not save.

Regards

Reply
Veena Prashanth - May 28, 2012

Hugo,
Pls clear cache/cookies, logout of dap and WP admin panel, then log back in first to WP admin, then to dap. That will fix this issue.

Reply
Jav - July 23, 2012

I installed version 4.3.1 in a folder under my main domain, ie http://mysite.com/membership. The site worked fine at http://mysite.com/membership before I installed dap. I installed DAP under root domain http://mysite.com/dap, just as your video explains.

However, now, every time I try to access the home page of my memberhip site, it automatically redirects me to http://mysite.com. I have cleared cache, and it still does the same.

I checked also the dap-config file and this is what it says:

define (‘SITE_URL_DAP’, ‘http://mysite.com’); and not http://mysite.com/membership. I tried changing to the latter, but it does not work either. What am i doing wrong? Thank you for your help. Thanks.

Reply
Veena Prashanth - July 23, 2012

The SITE_URL_DAP in dap-config.php should point to the domain name and NOT to a subfolder like membership.

It should be http://YOURSITE.com (replace YOURSITE.com with the name of your site).

Are you using any CACHE based plugin (like WP super cache / total cache) on your site?

If yes, pls de-activate it and then test.

Pls see this:
http://www.digitalaccesspass.com/forums/threads/756-Subfolder-installation?p=2159#post2159

Reply
Mark M - September 8, 2012

I am having a similar problem to Ujjal, my login page works fine and redirects directly after the user logs in, but this is what happens when they logout:

User logs out, and is sent to logout page
User logs in using %%LOGIN_FORM%% on logout page
User is redirected to same logout page (url says it is the same page) but now there is a “You are already logged in message. Click here to continue” message.

When the user enters their information into the login form on my logout page, I want the user to be directly sent to members home rather than stay on that page (since it says ‘You have been successfully logged out’ while right below it also says ‘You are already logged in’)

I am using Optimize press and do not have any other plugins besides mypageorder.

Mark

Reply
Veena Prashanth - September 8, 2012

Mark,

Pls do not use %%LOGIN_FORM%% on the logged out page (http:///YOURSITE.com/logged-out).

If you use %%LOGIN_FORM%% on any page that is NOT the primary login page (set in your dap setup -> config-> Login URL), dap will consider it as secondary login and redirect user back to the page where the request came from… after login.

So the user that logs in from the /logout page will remain on /logged-out with a confusing message.

When a user logs out, you can send them to a page that has a link to your login page, or send them to any other page instead of sending them to a page with %%LOGIN_FORM%%.

Reply
Mark M - September 10, 2012

Ok got it, Thanks!

Reply
Paula - September 26, 2012

When I go to my homepage (http://www.affiliatetoolshq.com) it automatically redirects to the login page.

I can’t figure out what I’ve done wrong. Any ideas?

Reply
Veena Prashanth - September 26, 2012

Paula,

Looks like you have protected the entire blog.

Pls check your theme header.php.

You might have added the code to header.php to protect entire blog as described here:

http://www.digitalaccesspass.com/doc/protect-entire-blog/

Reply
Paula - September 26, 2012

No, we haven’t added any code. I am using the Flexsqueeze theme and thought that might be a problem but I don’t think so because I just activated one of the default themes and still have the same problem. The home page just wants to default to the login page.

Reply
Veena Prashanth - September 26, 2012

Pls check the contentresponder section and make sure that the full URL (either / or affiliatetoolshq.com) is not protected in dap.

If that’s not the case, pls open a support ticket with us.

Reply
Russell Hall - February 17, 2013

Hi Ravi and Veena and team.
I have submitted a ticket about this but thought I would post here as there may be other members experriencing similar issues.

Last night my host went offline for quite a while and upon returning this morning I am experiencing some login issues (not sure if these two are related).
The problem came to my attention when a member notified me he couldnt get access to the member panel.
I tried to login at localbizvortex.com/login(dap dashboard login page) but was reverted to localbizvortex.com/member-dashboard/ but was prompted for a user name and password. Upon entering these it the reverted to wp-login.php.
I tried using my wife’s member login details for her page at localbizvortex.com/login and it worked fine. However, I then tried to get admin control access once again to /dap/login.php and was diverted to localbizvortex.com/member-dashboard and prompted for login details which then directed me to /wp-login.php and noted user/pass error.

I am baffled as to why at the beginning of my investigative process I was able to get Admin access to /dap/login.php straight into the master admin panel but now I am getting this silly loop routine that I cant seem to get beyond even after clearing cache. I am not using any cache plugins on the site either.

Reply
Veena Prashanth - February 17, 2013

Russell,

>> and was diverted to localbizvortex.com/member-dashboard and prompted for login details which then directed me to /wp-login.php and noted user/pass error. < < Pls check the 'page template' you are using for the /login page in WP admin -> pages and make sure you are using a dap login template and not the WP secured template.

Thanks,
Veena

Reply
Russell Hall - February 18, 2013

Hi Veena,
I followed your suggestion by ensuring that the dap/login page was using a member template and not a locked one (it had been set to default template) and that appears to have allowed my ability to log into DAP admin panel but I am still getting a “password or username not recognised” and being revered to a wp-login page.
BTW I am not using Optimize Press for the member site theme so it doesnt offer any specific DAP login template. I do have a OP license and could use that if necessary.
I am wondering also whether I should be upgrading to DAP 4.4.3 ?
Could this issue be related to a DAP-WP synchronisation issue?? (just guessing).

Reply
Veena Prashanth - February 18, 2013

Hi Russell,

>>I am wondering also whether I should be upgrading to DAP 4.4.3 ? < < Yes, if you can, pls upgrade to the latest version. >>Could this issue be related to a DAP-WP synchronisation issue? < < No, dont think so. >>I followed your suggestion by ensuring that the dap/login page was using a member template and not a locked one (it had been set to default template) and that appears to have allowed my ability to log into DAP admin panel but I am still getting a “password or username not recognised” and being revered to a wp-login page. << Could be some other plugin that's doing this. DAP does not redirect to wp login page. Can you pls de-activate all plugins except livelinks temporarily and see if the problem goes away? If not, pls upgrade to 4.4.3 and re-test. Also, pls read this: 1) http://www.digitalaccesspass.com/forums/threads/879-Dos-And-Donts

2) http://www.digitalaccesspass.com/forums/threads/677-Why-do-my-users-get-a-sorry-message-when-they-login

Thanks,
Veena

Reply
Muhammad Asif - February 19, 2013

May be you have session issue, I have faced this issue just a few months back.

Reply
Russell Hall - February 19, 2013

Veena,
I have updated to DAP 4.4.3 and Livelinks 1.8.3.2
I have disabled all plugins except Livelinks and IPN redirect
I have checked that /login/ page is a login template and not protected.
I have read specifics from the links you posted and noted all as correct.
BUT,… still I have this problem where members cannot access the member-dashboard and upon entering their username and password into the DAP login page are redirected instantly to wp-login.php

I would like to point out that up until a couple of days ago my DAP member site was working just fine but now it for some reason is not. I am now getting an increasing number of daily emails complaining about lack of access and also its affecting sales.
There has to be simpler solution to this!

Reply
Veena Prashanth - February 20, 2013

>>“password or username not recognised” and being revered to a wp-login page. >>

It sounds like your Post-Login-Redirect URL is not set correctly or you have some other plugin that is causing a conflict.

I have updated your support ticket with what we need to troubleshoot this. Pls respond to the ticket and we will troubleshoot it.

Reply
Martin - September 13, 2013

Hello Veena,

Reference JVzoo integration and product creation, I’m a bit confused. You say that a product in DAP is actually a membership level and that it must be named exactly what it is already named in Jvzoo.

However in JVzoo a product is a product and not a membership level.

My question is that I have 10 different products in a JVzoo sales funnel. Should I thus created 10 different products of identical name in DAP?

What then happen if say a customer buys products 1, 4 and 5 from the list of 1 to 10 products on jvzoo. Will DAP realize this and ensure that products 1,4 and 5 are available when they login?

Thanks,
Martin

Reply
Veena Prashanth - September 19, 2013

Hi Martin,

>> My question is that I have 10 different products in a JVzoo sales funnel. Should I thus created 10 different products of identical name in DAP? < < Correct. Every JVZoo product that you want to integrate with DAP, should have a same name product in DAP. >> What then happen if say a customer buys products 1, 4 and 5 from the list of 1 to 10 products on jvzoo. Will DAP realize this and ensure that products 1,4 and 5 are available when they login? << No, DAP can only process 1 item at a time. Please make a test purchase of the 3 products via JVzoo and send us the dap logs (in a support ticket) so we can check what JVzoo is sending in the IPN for multiple items. Thanks, Veena

Reply
Enoch - March 26, 2014

Is it possible to do this (or something to achieve the same end) with DAP?

I run an interview show. Below each interview post is a transcript. Using the [DAP] shortcode I’m protecting on the transcript as an incentive to get people to sign up for a free member ship.

The errMsgTemplate will give them a link that opens a free signup form in a light box. This works fine.

Here’s where I get lost:

After the user submits the lightbox form, I want the lightbox to close and refresh the page, revealing the transcript and showing them as logged in.

Otherwise they have to confirm their email, etc and they are taken away from the page they were browsing and might not find it again.

Also, because the entire page isn’t blocked, I’m not sure #5 above will work.

Any suggestions about how I can do this?

Reply
Veena Prashanth - March 26, 2014

Hi Enoch,

>>After the user submits the lightbox form, I want the lightbox to close and refresh the page, revealing the transcript and showing them as logged in. Otherwise they have to confirm their email, etc and they are taken away from the page they were browsing and might not find it again. Also, because the entire page isn’t blocked, I’m not sure #5 above will work. << If the product is double-optin, the users will have to opt-in otherwise they cannot see the transcript even if the page refreshes. If the product is single-optin, then you can set the 'redirect' tag in the free signup code to point back to the same page. This way the same page will reload but this time it will reveal the transcript as the user would have gotten access to it. Thanks, Veena

Reply
Enoch - March 26, 2014

Brilliant Veena! I get it! Also, I’m amazed that you responded so quickly to my query. I can see why everyone raves about DAP’s great customer support! Amazing…

Reply
Enoch - March 27, 2014

Hmm… got it working, except, users aren’t logged in when the page is refreshed (I did make sure the product is single opt in by deleting the double opt in email fields). here’s the page:
DAP direct signup form lightbox login test.

Reply
Veena Prashanth - March 27, 2014

Hi Enoch,

>> Hmm… got it working, except, users aren’t logged in when the page is refreshed (I did make sure the product is single opt in by deleting the double opt in email fields). here’s the page: << The login occurs when the form is submitted to the dap signup submit script. Please use a NEW email that does not already have access to the product in dap to test this. If it still does not work, we will need the logs to check. Please open a support ticket with the dap logs. Thanks, Veena

Reply

Leave a Reply: