Developers
AvantGo Channel Developer Guide

TOC PREV NEXT INDEX


Subscribing users with a sign-up process

Assume that you have a channel you would like users to customize before they join. Or, perhaps you have a channel that you would like to charge customers for, and you want them to give you their credit card password before they join. This can be accomplished in the following manner:

  1. Provide us with two URLs.
  2. The first URL will point to your subscription page — this is the page we will link to when people want to add your channel. If you want people to subscribe to your channel from your site, point them to this page as well.

    The second URL will be your "secret" URL — this is the URL that points to your real content. The AvantGo service will create an ID number for this URL, but we will never display this ID publicly. Instead, once the user has completed the sign-up process on your site, you will provide them with an _add_channel.pl link that includes this ID number.

  3. Create the sign-up process for the user.
  4. Obviously, this will vary depending on what kind of site you are and what you hope to accomplish during the sign-on process. But chances are, you will gather some sort of information during the sign-up process that you would like to associate with their account. Which leads us to the next step.

  5. Generate an _add_channel.pl link with cookie information.

Remember, the best way to personalize a site for an AvantGo Client user is to set and retrieve cookie information. For more information, see Using cookies to support personal channels and Using personal channels to bypass the Forms Manager.

If a user's gone through the signup process for your site, you probably have some information, whether it is a set of preferences or a unique UserID, that you want to store in his cookie. The AvantGo Client provides two ways of setting cookies while you are adding a channel by using the _add_channel.pl link:


Additional topic in this section:



TOC PREV NEXT INDEX