Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: tonyyeb on August 13, 2008, 03:42:13 PM

Title: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 03:42:13 PM
Hi all

Anyone else finding AmigaKit's web site is down?

Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 03:51:12 PM
Yes.
Title: Re: AmigaKit down?
Post by: sim085 on August 13, 2008, 03:57:52 PM
Yes, maybe they are upgrading it or something like that :)
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 03:58:58 PM
Sorry about this- we are experiencing high levels of traffic on the US server- the UK server is still running though: http://www.amigakit.co.uk
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 04:07:56 PM
Back up and running now :-)
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 04:17:54 PM
Bananas for you Amigakit:

:banana: :banana: :banana: :banana: :banana:
Title: Re: AmigaKit down?
Post by: Caius on August 13, 2008, 04:49:30 PM
I still can't access any of the servers. I'm getting an "URI Too Large" error. Oh well. Guess I'll just have to wait.
Title: Re: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 05:01:52 PM
Quote

Caius wrote:
I still can't access any of the servers. I'm getting an "URI Too Large" error. Oh well. Guess I'll just have to wait.


Getting the same error for the UK site.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 05:02:41 PM
Can you pmail me the exact URL that is in your web browser bar when you get this error and also tell me what browser you are using.  Thanks.
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 05:04:02 PM
uk.amigakit.com and amigakit.co.uk both working fine here on Safari and Firefox.
Title: Re: AmigaKit down?
Post by: Caius on August 13, 2008, 05:06:59 PM
I've got it working now on the UK server. Just for the record, though. I've been getting that same error message often in the past too. But then it has been enough to refresh the browser to continue. Using FireFox3.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 05:09:08 PM
Hmmm, mystery.  If someone gets the URI Too large error, please pmail me the full link from your browser so we can get to the bottom of this problem ASAP.
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 05:13:06 PM
Maybe the session ID (which seems to be passed within the URL) happens to sometimes go above the limit on the number of characters the web server will accept as a valid URL.
Title: Re: AmigaKit down?
Post by: sim085 on August 13, 2008, 05:26:46 PM
I had the url is too long error when I was using FireFox the other day. I then used IE and the site entered normally. I therefore think this is a website issue when FireFox is used.
Title: Re: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 05:54:33 PM
IE7 works fine but firefox 3.0.1 gets URL too long:

http://amigakit.leamancomputing.com/catalog/GBP.php?lcsid=xxxxxxxxxxxxxxxxxxxxxxxxxxx
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 05:57:56 PM
Looks like whatever redirects to GBP.php is appending the session ID loads of times instead of just once. If you edit the URL to just http://amigakit.leamancomputing.com/catalog/GBP.php?lcsid=xxxxxxxxxxxxxxxxxxxxxxxxxxx then does it work?

Edit - edit your post to remove the session ID. I just got in to your account!
Edit - it's ok, I just did you a favour and logged you off so the session ID is no longer valid.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 06:06:36 PM
OK thanks for the feedback- in interests of security, please edit the session IDs out of this thread ASAP!  Thanks.
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 06:08:04 PM
Quote
amigakit wrote:
in interests of security, please edit the session IDs out of this thread ASAP!  Thanks.

Ok, done. Though it shouldn't matter now since I logged the session out.
Title: Re: AmigaKit down?
Post by: mauidj on August 13, 2008, 06:27:27 PM
I've been getting the too long message for over 2 weeks!
Still can't get on. :-(
I'm using Safari.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 06:31:56 PM
Do you have Cookies enabled?

What page are you viewing to generate that huge URL?  Do you press reload a few times?
Title: Re: AmigaKit down?
Post by: sim085 on August 13, 2008, 07:10:56 PM
The error happens when selecting the store. Selecting any store on FireFox it will generate that error?
Title: Re: AmigaKit down?
Post by: beller on August 13, 2008, 07:17:51 PM
Wow...the message above with the LONG URL seems to have impacted the message base here.  I've got the message windows pushed very wide here!

I've forwarded the URL I received via email.  I can access the front door but when I select store I end up with the 414 error!

Bob
Title: Re: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 07:31:33 PM
Quote

beller wrote:
Wow...the message above with the LONG URL seems to have impacted the message base here.  I've got the message windows pushed very wide here!

I've forwarded the URL I received via email.  I can access the front door but when I select store I end up with the 414 error!

Bob


Sorry that was my post with what turned out to be a HHHUUUUGGGGEEE URL!

@Amigakit

Why is the session URL sensitive? I've seen people post links with the session ID in, are people putting personal data at risk?
Title: Re: AmigaKit down?
Post by: DBAlex on August 13, 2008, 08:17:40 PM
@AmigaKit

Still getting the 404:
(http://img29.picoodle.com/img/img29/3/8/13/f_amigakitdowm_050b74a.jpg)

 :-(
Title: Re: AmigaKit down?
Post by: weirdami on August 13, 2008, 08:29:35 PM
Quote

amigakit wrote:
OK thanks for the feedback- in interests of security, please edit the session IDs out of this thread ASAP!  Thanks.


I'd say perhaps that in the further interest of security that those session ID things be not used. If that's impossible, maybe do like how there is a generic URL that loads things from a session ID accessible page.
Title: Re: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 08:43:41 PM
Working in IE7 again but not Firefox 3.0.1 (long url issue).

Tried deleting cookies but still no joy.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 08:45:34 PM
Tested with Firefox 3 with no issues here. Pmail me with the offending link.
Title: Re: AmigaKit down?
Post by: tonyyeb on August 13, 2008, 08:50:57 PM
Quote

amigakit wrote:
Tested with Firefox 3 with no issues here. Pmail me with the offending link.


Cleared cache again and now www.amigakit.co.uk works fine in firefox 3.0.1.
Title: Re: AmigaKit down?
Post by: DBAlex on August 13, 2008, 08:56:54 PM
OK, Working now.

Dunno what the issue was.  :-?
Title: Re: AmigaKit down?
Post by: wurzel on August 13, 2008, 09:43:18 PM
Yes, it appears to be working, although the usual "splash" page with the flags isn't there.

This is on IBrowse ;)
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 09:49:20 PM
Quote
tonyyeb wrote:
Why is the session URL sensitive? I've seen people post links with the session ID in, are people putting personal data at risk?

The session ID is used to identify which user is logged on. When I clicked the link with your session I was able to access the site as if I were logged on as you, meaning I could access your account. That's why it is not secure to post a link with a session ID.
Title: Re: AmigaKit down?
Post by: motorollin on August 13, 2008, 09:52:39 PM
Quote
weirdami wrote:
I'd say perhaps that in the further interest of security that those session ID things be not used. If that's impossible, maybe do like how there is a generic URL that loads things from a session ID accessible page.

The session ID can be stored in a cookie and passed to the web server, or passed between pages by storing it in $_SESSION. Either of these would be preferable to passing the session ID in the URL.
Title: Re: AmigaKit down?
Post by: sim085 on August 13, 2008, 09:53:10 PM
Mine is working now (cleared cache) although session Id is still passed from the URL.
Title: Re: AmigaKit down?
Post by: amigakit on August 13, 2008, 09:54:45 PM
We have added additional checking now linked to the Session ID  which will terminate the session.  To catch users that forget to log out, we are implementing a script to auto-logoff if the user leaves the site without selecting logoff.
Title: Re: AmigaKit down?
Post by: ZeBeeDee on August 13, 2008, 10:36:13 PM
I'm getting no pictures of any products on any Amigakit site in IE6 and Firefox 3 @ the time of posting.

(http://i528.photobucket.com/albums/dd328/amiga-org/Clipboard02.jpg)

Did somebody forget to pay the photographer now? lol
Title: Re: AmigaKit down?
Post by: Lando on August 13, 2008, 11:07:45 PM
Quote

ZeBeeDee wrote:
I'm getting no pictures of any products on any Amigakit site in IE6 and Firefox 3 @ the time of posting.


Same here in Safari  :-?
Title: Re: AmigaKit down?
Post by: Phantom on August 13, 2008, 11:17:53 PM
It seems to work, but any images don't want to load. This is with iBrowse 2.4.
Title: Re: AmigaKit down?
Post by: ZeBeeDee on August 13, 2008, 11:42:09 PM
I'm starting to see some pictures of products in both IE6 & Firefox now.


*Addendum*    

All pictures of products are showing once again for me on the UK site, other Amigakit sites are slowly coming back :-)
Title: Re: AmigaKit down?
Post by: klx300r on August 14, 2008, 01:57:37 AM
working great for me with firefox 2.01
Title: Re: AmigaKit down?
Post by: Piru on August 14, 2008, 03:07:39 AM
Session token should be transferred either via cookie or HTTP POST, never thru HTTP GET.

With HTTP GET the session tokens leak to server logs, to other sites via HTTP-referer header, proxies, browser cache, browser url history, links posted by the user etc. This is especially grave if the session is related to financial dealings such as ordering product using some pre-existing account.

http://en.wikipedia.org/wiki/Session_hijacking
http://en.wikipedia.org/wiki/Session_fixation
Title: Re: AmigaKit down?
Post by: LoadWB on August 14, 2008, 09:20:14 AM
Quote
motorollin wrote:

The session ID can be stored in a cookie and passed to the web server, or passed between pages by storing it in $_SESSION. Either of these would be preferable to passing the session ID in the URL.


The PHPSESSION value stored in a Cookie or POST identifies the session to a new page in order to populate the $_SESSION super-global.  So you can't store the session ID in a $_SESSION variable and expect it to work.  A cookie is preferable to POST as the POST would require a hidden variable in a form rendered in plain-text html, and therefore subject to cache snooping after the fact.

Most of the time what happens is people are so overly paranoid about cookies that they don't allow them, period.  This breaks many sites' functionality.  Good, active anti-malware software and having third-party cookies disabled in the browser will generally keep users' machines clean (generally.)  Disabling cookies altogether is a bad thing, IMHO.

I'll accept any cookie, so long as it's chocolate chip or white chocolate chip without the nuts.  :crazy:
Title: Re: AmigaKit down?
Post by: motorollin on August 14, 2008, 10:06:18 AM
Quote
LoadWB wrote:
The PHPSESSION value stored in a Cookie or POST identifies the session to a new page in order to populate the $_SESSION super-global.  So you can't store the session ID in a $_SESSION variable and expect it to work.

I'll have to take your word for that. I could never get sessions working properly using $_SESSION so I don't think I understood it properly. I ended up storing the user's variables in a database table and recovering them using the session ID stored in the cookie :-?
Title: Re: AmigaKit down?
Post by: LoadWB on August 14, 2008, 11:01:10 AM
Quote

motorollin wrote:
Quote
LoadWB wrote:
The PHPSESSION value stored in a Cookie or POST identifies the session to a new page in order to populate the $_SESSION super-global.  So you can't store the session ID in a $_SESSION variable and expect it to work.

I'll have to take your word for that. I could never get sessions working properly using $_SESSION so I don't think I understood it properly. I ended up storing the user's variables in a database table and recovering them using the session ID stored in the cookie :-?


It's actually easier than it seems.  Before you send any output to the browser, issue a start_session() then you can begin populating $_SESSION variables.  On the next page, issue a start_session() again and you can use the variables.  When you're done, issue a session_destroy() and that's it.

In interim pages you can also issue a session_regenerate_id() to avoid session fixations.  This calculates a new session id and issues it to the browser.  Put "true" as the function parameter and it will also destroy the old session store (the file, mm entry, sqlite row, etc.) while transferring the $_SESSION variables to under the new ID.
Title: Re: AmigaKit down?
Post by: motorollin on August 14, 2008, 11:22:16 AM
Quote
LoadWB wrote:
It's actually easier than it seems.  Before you send any output to the browser, issue a start_session() then you can begin populating $_SESSION variables.  On the next page, issue a start_session() again and you can use the variables.  When you're done, issue a session_destroy() and that's it.

So how does the web server know which session to issue to the browser on subsequent calls to start_session()? Is there a predefined variable which you set to the session ID for start_session() to pass back?
Title: Re: AmigaKit down?
Post by: amigakit on August 14, 2008, 11:25:41 AM
OK - we have implemented full cookie session IDs- this will mean that to shop, you have to now enable cookies for the site if you have disabled them.  Feedback is welcomed.

This should also elimiate the URI too long error that a small amount of users were getting.
Title: Re: AmigaKit down?
Post by: LoadWB on August 14, 2008, 12:53:43 PM
Quote
motorollin wrote:

So how does the web server know which session to issue to the browser on subsequent calls to start_session()? Is there a predefined variable which you set to the session ID for start_session() to pass back?


Using LiveHeaders, I see that every connection to the server the browser sends a Cookie: header with the PHPSESSION value.  The server can then react upon it if the session is still valid.  The start_session() doesn't necessarily instantiate a session, it enables your page to use a session.

What I just noticed, and I'm not quite sure where to point the finger on this one, is that between my Firefox 3 and PHP5, an old session ID is being reused.  This probably has to do with cookie expiration (default is 0, which is to expire when the browser closes, which I generally hardly ever close) and me not generating new session IDs... which I will definitely start doing.

I did find a note in PHP's bug system from 2001 which illustrated that a client can specify the session ID when instantiating a new session.  In the end, it was decided that this is not a bug.