Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Applying a Subscription with PayPalApplying a Subscription with PayPal
Previous
 
Next
New Post
3/21/2006 10:42 AM
 

Hi,

I have successfully setup a security role that allows access to secure areas of the web site. In addition, I have setup the payment gateway with PayPal and have setup an IPN (Instant Payment Notification) to return to paypalipn.aspx. I have a subscription model of £25 / month with a 14 day free trial.

SO far, so good, the payment is taken OK by Paypal the emails from Payapal are sent out and the user returns to the web site. It appears that they have importantly acquired membership to the subscription role. The big problem, is that the user seems to have to logooff and log back on again for these security access rights to take affect.

The current result is the user starts to panic as they think they have paid and not got access, so they immediately unusbscribe and unregister. -->> Lost Business

How can I make it so that on returning from PayPal they adopt the security rights of the their new role ???? without having to logoff and log back again.

 
New Post
3/21/2006 11:05 AM
 

I've experienced having to tell a user to log off and log back in to switch roles.  It was never a big issue for me, but if it were, I'd probably go into the web.config and play with some setups;

<roleManager cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="false" cookieProtection="All">

Anyone think Werder would have any luck editing this section in the web.config so his users get the new security roles instantly?

 
New Post
3/21/2006 3:54 PM
 

OK, this has got me thinking again. I was blindfolded into thinking it was something wrong with the PayPal Subscription and never thought about the roles and caching / cookies.

By doing a simple test, of altering a users roles manually, I see that the roles caching/ cookies is the problem.

Now to try and solve it, using your advise to look at web.config, I changed the cacheRolesInCookie from true to false.

<roleManager cacheRolesInCookie="false" cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="false" cookieProtection="All"> 

 

Unfortunately, it didn't work straight off, I am now waiting 30 minutes to see if expiration of any existing cookies might be a problem.

One step further, but not there yet.

 
New Post
3/22/2006 3:17 PM
 

Very odd that setting cookies NOT to cache didn't change anything.  Maybe posting a new topic about what the 'cookieSlidingExpiration' or any of the others may get some attention from somebody who knows.

You may also want to try out giving the page a 'hard refresh'.  Ctrl + Alt + Refresh button in IE.  IE then redownloads everything - css's, cookies, images, etc.  That may get your users (who use IE) into the new role.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Applying a Subscription with PayPalApplying a Subscription with PayPal


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out