I am trying to upload around 2000 users to create mail box. If there are less number of user (300), it works fine. However, number of users are more (2000) it gives problem when redirect function call to create mail box again.

The brief technical overview.

1. storing all the email id in session (no problem)
2. from session using loop, mail box is created one by one before 5 seconds of maximum execution time and unset the session of created mail box.
3. every after the max execution time, again it redirects using csv line number and execution time (as recommended) and create again (If redirect call is less then it works fine, but if it is multiple calls, then error occurs) . However, after some time, the following error occurs in chrome :

"This webpage has a redirect loop
The webpage at http://localhost/pa/trunk/create-bulkmailbox.php?filecsv=postfixadmin&line_no=309&execTime=26.59564614296 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. "

same cases with IE and Mozilla. It creates only the certain number of  mail boxes.

I am stuck with the above problem. I am even thinking of creating .htaccess file but I am not quite sure whether this will overcome the problems.

I would appreciate for your advice, recommendations and comments.



This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.