Question: There are about 1700 articles listed on my website created using ASP.NET 4.0 Web Forms. These articles have a url format as: 

```
http://www.mymymyarticles.com/Article.aspx?ID=400

```

I have explored ASP.NET Friendly URLs as well IIS URL Rewrite. These extensions are great but once a rule is created, they treat all url's generically.

Is it possible that I manually generate my own url string for every url that exists on my website? For eg:

I want to permanent redirect `http://www.mymymyarticles.com/Article.aspx?ID=400` to `http://www.mymymyarticles.com/this-is-a-very-long-url` whereas

`http://www.mymymyarticles.com/Article.aspx?ID=500` can be redirected to `http://www.mymymyarticles.com/article/short-url` and 

`http://www.mymymyarticles.com/Article.aspx?ID=523` can be redirected to `http://www.mymymyarticles.com/very-short-url` 

So you can see there is no uniformity in the url's that I want to manually generate. Basically I want full control over the url's. How can I go about this. **Will it affect performance?**

Any examples are appreciated.

Answer: 
Add a conditional:

```
if (!isset($_SESSION["var"]) {
    $_SESSION["var"] = 0;
}

```

This will only initialize the session only if it hasn't been initialized before.
if you want to develop this further, you could use the serialize functions to convert it into something you can store, in a cookie perhaps, or a file, or a database..

the serialize function converts the array into a string that can be stored. Sort of looks like json.

If you got any more questions, is there a way to notify me? can i follow people like on facebook/twitter?