1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP.NET: way to generate session-id AFTER login?

Discussion in 'C#' started by bonzay, Nov 14, 2007.

  1. #1
    When the URL of our newly created website is invoked, the server automatically redirects to another URL using the session-id in its path. Like
    [SIZE=-1]/(S(4jtjxzinhucp04zyjxrb1155))/news.aspx

    Unfortunately, this way we end up having multiple URLs pointing to the same content in the search engines. Is there a way to generate the session-id only after having logged-in? We do not want to use cookies though.
    [/SIZE]
     
    bonzay, Nov 14, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is there a reason for not using cookie or SQL based sessions?

    The other option if you are looking at spiders only is to create a browser file and enable cookie based sessions for spiders and url based for all other people
     
    AstarothSolutions, Nov 14, 2007 IP
  3. bonzay

    bonzay Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, there may be people who have disabled cookies because of privacy concerns. So I think it would be better not to use cookies. What do you think?

    How can I handle session-management manually? Currently, we only have the following entry in web.config:
    <sessionState cookieless="true" timeout="20"/>
    Code (markup):
    So it's for all users. But how do we set it depending on the user-agent?
     
    bonzay, Nov 14, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The number of people with cookies disabled is tiny (0.68% was the last figure i saw and that includes those using systems unable to accept cookies) so personally would just use cookies.
     
    AstarothSolutions, Nov 14, 2007 IP
  5. muruganad

    muruganad Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hai...

    Here is the solution....

    http://muruganad.com/ASP.NET/ASP-NET-How-to-get-a-sessionid.html

    Thanks!

    Murugan Andezuthu Dharmaratnam

    www.muruganad.com
     
    muruganad, Nov 2, 2009 IP