Sample code

Refer to the following code samples for an illustration of the concepts described above.

  • Different files for different users, in same directory:

    Channel URL – http://myserver.com/myapp/AG_USER.asp

    Files for different users –

    D:\webserver\contentroot\myapp\aasmith.htm D:\webserver\contentroot\myapp\bjwong.htm D:\webserver\contentroot\myapp\ccgomez.htm

  • Different directories for different users, with same file name:

    Channel URL – http://myserver.com/AG_USER/myapp.htm

    Files for different users –

    D:\webserver\contentroot\aasmith\myapp.htm D:\webserver\contentroot\bjwong\myapp.htm D:\webserver\contentroot\ccgomez\myapp.htm

  • User ID passed as parameter to Web application:

    Channel URL – http://myserver.com/myapp.asp?id=AG_USER

    Files for different users –

    D:\webserver\contentroot\myapp.asp (The same file, myapp.asp, generates different content when each user ID replaces AG_USER in the channel URL.)