are session variables the proper tool to carry data from pre to post registration

Users gets to a page on my site, where I capture UrlData[0], and put it in a session variable.

User registers for my site.

After all formalities have been taken care of and I am ready to the save data to the UserProfile, I read the session variable.

There is no data.

Am I doing this correctly or is there something else I need to use besides cookies?

wavemaster

Users gets to a page on my site, where I capture UrlData[0], and put it in a session variable.

User registers for my site.

After all formalities have been taken care of and I am ready to the save data to the UserProfile, I read the session variable.

There is no data.

Am I doing this correctly or is there something else I need to use besides cookies?

Hey there,

Can you please explain what you are trying to achieve and perhaps provide some code? Happy to try and help if you can be a bit more specific?

Cheers!

Appreciate the offer four further help!

In _Pagestart:

Session["token"] = "0";

In the Token page;

var token = UrlData[0];
Session["token"] = token;

Anonymous user decides to register for my site, then…

In Register, after the anonymous user has entered all their information in the form, the form submit, I do some checking if the user is a new user etc.

Then when I get ready to write the information into UserProfile:

var token = Session["token"];

At this point Session["token"] is empty.

wavemaster

Appreciate the offer four further help!

In _Pagestart:

Session["token"] = "0";

In the Token page;

var token = UrlData[0];
Session["token"] = token;

Anonymous user decides to register for my site, then…

In Register, after the anonymous user has entered all their information in the form, the form submit, I do some checking if the user is a new user etc.

Then when I get ready to write the information into UserProfile:

var token = Session["token"];

At this point Session["token"] is empty.

What are you looking at parsing? Not sure why you need the session token..

Tracking a user.

Leave a Reply