locked
3 questions!! :D RRS feed

  • Question

  • hi, when i try to change the width property in the iframe, it no changes. always stay the same width, im not using any css styles yet.

     

    another question is how i can set how many time i want to stay logged in, whenever i close the winodws the session is cleared and i have to login again.

     

    and the lastone... , i have created two hyperlinks, 1 for sign in, and another for sign out:

     

    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://login.live.com/wlogin.srf?appid=00163FFF80005A43&alg=wsignin1.0&appctx=default.aspx" Visible="False">iniciar</asp:HyperLink>

     

    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="http://login.live.com/logout.srf?appid=00163FFF80005A43" Visible="False">cerrar</asp:HyperLink>

     

    i have tried to put when will be visible the signout if the cookie exist, else the sign in. but im not sure if that is the right place because when i change from http://localhost to http://127.0.0.1 all go wrong. somebody can post how has implemented a personalizated login link??, and how you are use to manage accounts with the users in net or with a personalizated database.

    thanks, ans sorry for my english.

    Tuesday, December 11, 2007 3:34 AM

Answers

  • Are you sure you change the width and save it? If you're not using any CSS, the iframe-width should just change.

     

    If you want to stay logged in, you need to make the cookie persistent. This basically means expanding the cookie lifetime for a longer period of, say, a year. I am not sure about how it's implemented in the ASP.NET-version, in the PHP-version there is a flag, usePersistentCookie, try looking for something similar in ASP.NET.

     

    To a browser, http://localhost and http://127.0.0.1 are two different domains, even though they resolve to the same IP. It's possible to host multiple websites on the same IP, if cookies were IP-based in stead of hostname-based, seperate websites hosted on the same server would get each others cookie.

     

    It's a security measure: the cookie will only be sent to the specified hostname. If you want to use the same cookie on different hostnames, you'll have to find a way to synchronize the cookies. Or just stick to 1 hostname. Wink

    Tuesday, December 11, 2007 3:55 PM