Hmm, at a glance it looks like that should work. Session should be
specific to each user that browses your site. When you say that all
users saw that last person who logged in, were you testing from
different computers?

Cheers,
-Jeff

On Oct 24, 10:15 pm, "Me." <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> I am doing like this in my page load:
>
> GotoAuthSubLink.Visible = false;
>
>          UName = (string)Session["UName"];      // This session i lost
> when i attempt authentication on google
>         if (Request.QueryString["operation"] == "logout")
>         {
>             Session["token"] = null;
>             GetAlubm.Visible = false;
>         }
>
>         if (Session["token"] != null)
>         {
>             if (Request.QueryString["PhotoId"] != null)
>             {
>                 getphoto();
>             }
>             else if (Request.QueryString["Photos"] != "1")
>             {
>                 Albumphotos();
>             }
>             else
>             {
>                 photos();
>             }
>         }
>         else if (Request.QueryString["token"] != null)
>         {
>             String token = Request.QueryString["token"];
>             Session["token"] =
> AuthSubUtil.exchangeForSessionToken(token, null).ToString();
>          //   string RequsetdLink = Request.Url.AbsolutePath + "?
> UName=" + UName;
>             Response.Redirect(Request.Url.AbsolutePath);
>             //Response.Redirect(RequsetdLink, true);
>         }
>         else //no auth data, print link
>         {
>             GotoAuthSubLink.Text = "Login to your Google Account";
>             GotoAuthSubLink.Visible = true;
>         //    myService.setUserCredentials(UName, "abc");
>
>             //string RequestedLink = "http://localhost:2442/ExPicasa/
> OAuth.aspx?UName=" + UName;
>             //GotoAuthSubLink.NavigateUrl =
> AuthSubUtil.getRequestUrl(RequestedLink, "http://picasaweb.google.com/
> data/", false, true);
>             GotoAuthSubLink.NavigateUrl =
> AuthSubUtil.getRequestUrl(Request.Url.ToString(), "http://
> picasaweb.google.com/data/", false, true);
>             //GotoAuthSubLink.NavigateUrl =
> AuthSubUtil.getRequestUrl("http://localhost:2442/ExPicasa/OAuth.aspx";,
> "http://picasaweb.google.com/data/";, false, true);
>         }
>
> Is there any thing wrong ? what it will make only one authentication
> for every user? if yes then how to prevent it?
>
> Bcz i don't make any classes, Is i need to make class ?
>
> On Oct 24, 11:21 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
>
> > You must use sessions or some other mechanism on your site to track
> > the AuthSub token for each user. You can also store it in a database
> > if you have some login mechanism already on your site. You don't want
> > to use the same AuthSub token for everyone who visits your site.
>
> > Cheers,
> > -Jeff
>
> > On Oct 24, 2:40 am, "Me." <[EMAIL PROTECTED]> wrote:
>
> > > Hi
>
> > > I have problem with user's login
>
> > > if i used "default" then my problem is raise during multiple user.
> > > any last user who loged in, all albums and photos show to all members
> > > of last user's loging.
>
> > > This porblem is occure when i publish my website and run on my local
> > > IIS.
>
> > > -Me.- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to