close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User Login / Cookies view a page once then prompt them to register

Thread began 10/29/2009 7:43 pm by ew391940 | Last modified 10/30/2009 1:09 pm by Eric Mittman | 1481 views | 1 replies |

ew391940

User Login / Cookies view a page once then prompt them to register

I am wondering if there is a way with security assist and cookies to create a user login where users can see one item and then be prompted to register when they attempt to view the second item.

Im building a site where they want the end user to be able to see one item (details page) just to tease the end user but then when they go to the next item or view the details page for a second time it prompts them to register.

Can anyone help me with this? Thanks.

Sign in to reply to this post

Eric Mittman

You can use Security Assist to create the user registration and login functionality. The redirecting though based on a cookie will just use cookies toolkit and some hand coding.

On any of the pages you would like to restrict access to you can apply the Security Assist access rules to that page.

One your product detail page you will need to check the cookie to see if it has a particular value. If it does then you would redirect the user to another page.

If the cookie is not set to the specific value then set the cookie to this value.

If this code is in place at the top of the page it will check for the cookie, if it does not exist, like the first time the user gets to the page, then it will be created. If the user tries to go to the next items detail page or even view the same page the check of the cookie will occur and since the value has been set the user will be redirected to the page of your choice.

This is the general idea, please post back with any questions that you have about any part of this.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...